aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJon Tewksbury <[email protected]>2015-11-03 15:04:26 -0800
committerJon Tewksbury <[email protected]>2015-11-03 15:04:26 -0800
commit2d87ec9a64b521807786f476dfe1b7a555b43e4b (patch)
tree6d55d32a5eeb38a0a9d7afaacee3e22ddb03a955 /js
parent36d20a85142fa2649d1b430d91a6335b4249f308 (diff)
downloadbootstrap-2d87ec9a64b521807786f476dfe1b7a555b43e4b.tar.xz
bootstrap-2d87ec9a64b521807786f476dfe1b7a555b43e4b.zip
Add eslint no-undef rule and resolve errors
Diffstat (limited to 'js')
-rw-r--r--js/.eslintrc5
-rw-r--r--js/src/modal.js2
-rw-r--r--js/src/tooltip.js2
3 files changed, 6 insertions, 3 deletions
diff --git a/js/.eslintrc b/js/.eslintrc
index 9c66e0733..b8c38b342 100644
--- a/js/.eslintrc
+++ b/js/.eslintrc
@@ -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,
diff --git a/js/src/modal.js b/js/src/modal.js
index 99a49f148..a5f0160c9 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -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
}
})
})
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index b80bd8e8c..749e42379 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -1,3 +1,5 @@
+/* global Tether */
+
import Util from './util'