mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Build: Fix unresolved jQuery reference in finalPropName
Also, prevent further similar breakages by changing our ESLint configuration
to disallow relying on a global jQuery object in AMD modules.
(cherry-picked from 874030583c)
Fixes gh-4358
Closes gh-4361
This commit is contained in:
@@ -3,7 +3,12 @@
|
||||
|
||||
"extends": "../.eslintrc-browser.json",
|
||||
|
||||
"globals": {
|
||||
"jQuery": true
|
||||
}
|
||||
"overrides": [
|
||||
{
|
||||
"files": "wrapper.js",
|
||||
"globals": {
|
||||
"jQuery": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
define( [ "../var/document" ], function( document ) {
|
||||
define( [
|
||||
"../var/document",
|
||||
"../core"
|
||||
], function( document, jQuery ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user