mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Add eslint no-undef rule and resolve errors
This commit is contained in:
parent
36d20a8514
commit
2d87ec9a64
@ -2,7 +2,8 @@
|
||||
"root": true,
|
||||
"parser": "babel-eslint",
|
||||
"env": {
|
||||
"browser": true
|
||||
"browser": true,
|
||||
"jquery": true
|
||||
},
|
||||
"rules": {
|
||||
|
||||
@ -98,7 +99,7 @@
|
||||
"no-label-var": 2,
|
||||
"no-shadow": 0,
|
||||
"no-shadow-restricted-names": 2,
|
||||
"no-undef": 0,
|
||||
"no-undef": 2,
|
||||
"no-undefined": 0,
|
||||
"no-undef-init": 2,
|
||||
"no-unused-vars": 2,
|
||||
|
@ -138,7 +138,7 @@ const Modal = (($) => {
|
||||
$(this._dialog).on(Event.MOUSEDOWN_DISMISS, () => {
|
||||
$(this._element).one(Event.MOUSEUP_DISMISS, (event) => {
|
||||
if ($(event.target).is(this._element)) {
|
||||
that._ignoreBackdropClick = true
|
||||
this._ignoreBackdropClick = true
|
||||
}
|
||||
})
|
||||
})
|
||||
|
@ -1,3 +1,5 @@
|
||||
/* global Tether */
|
||||
|
||||
import Util from './util'
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user