]> source.dussan.org Git - jquery.git/commitdiff
Build: Fix AMD dependencies in curCSS
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Tue, 30 Apr 2019 19:21:18 +0000 (21:21 +0200)
committerGitHub <noreply@github.com>
Tue, 30 Apr 2019 19:21:18 +0000 (21:21 +0200)
A leftover `rboxStyle` was left in the wrapper parameters but not in the
dependency array, causing `getStyles` to be undefined in AMD mode.

Since `rboxStyle` is no longer used, it's now removed.

Ref gh-4347
Closes gh-4380

src/css/curCSS.js
src/css/var/rboxStyle.js [deleted file]

index 111285b2eaec83238311d7a759cd06d6197d0550..882e7423e6a537e73c562d18bce0c255afdd3854 100644 (file)
@@ -2,7 +2,7 @@ define( [
        "../core",
        "../core/isAttached",
        "./var/getStyles"
-], function( jQuery, isAttached, rboxStyle, getStyles ) {
+], function( jQuery, isAttached, getStyles ) {
 
 "use strict";
 
diff --git a/src/css/var/rboxStyle.js b/src/css/var/rboxStyle.js
deleted file mode 100644 (file)
index 902c010..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-define( [
-       "./cssExpand"
-], function( cssExpand ) {
-       "use strict";
-
-       return new RegExp( cssExpand.join( "|" ), "i" );
-} );