Merge "resourceloader: qualify $ variable in script() call to handle the case of...
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 15 Jun 2018 15:49:26 +0000 (15:49 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 15 Jun 2018 15:49:26 +0000 (15:49 +0000)
resources/src/mediawiki/mediawiki.js

index ad020b5..4ce6ff8 100644 (file)
                                                } else if ( typeof script === 'function' ) {
                                                        // Pass jQuery twice so that the signature of the closure which wraps
                                                        // the script can bind both '$' and 'jQuery'.
-                                                       script( $, $, mw.loader.require, registry[ module ].module );
+                                                       script( window.$, window.$, mw.loader.require, registry[ module ].module );
                                                        markModuleReady();
 
                                                } else if ( typeof script === 'string' ) {