Also, prevent further similar breakages by changing our ESLint configuration
to disallow relying on a global jQuery object in AMD modules.
(cherry-picked from
874030583c9b94603de467124420e6c7a1c3c8ac)
Fixes gh-4358
Closes gh-4361
"extends": "../.eslintrc-browser.json",
- "globals": {
- "jQuery": true
- }
+ "overrides": [
+ {
+ "files": "wrapper.js",
+ "globals": {
+ "jQuery": false
+ }
+ }
+ ]
}
-define( [ "../var/document" ], function( document ) {
+define( [
+ "../var/document",
+ "../core"
+], function( document, jQuery ) {
"use strict";