diff options
| author | Chris Rebert <[email protected]> | 2015-11-04 00:15:05 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2015-11-04 00:15:05 -0800 |
| commit | 4d17a04a2766315299de7e6f5d0894bb9ed25228 (patch) | |
| tree | d6c146ac638ee4cd6b82f368a2009df6cee4cb2a | |
| parent | 083ef3fda26998e49392935fde798a495159a1ee (diff) | |
| parent | 2d87ec9a64b521807786f476dfe1b7a555b43e4b (diff) | |
| download | bootstrap-4d17a04a2766315299de7e6f5d0894bb9ed25228.tar.xz bootstrap-4d17a04a2766315299de7e6f5d0894bb9ed25228.zip | |
Merge pull request #18148 from jontewks/patch-2
Adds linting error for undefined variables
| -rw-r--r-- | js/.eslintrc | 5 | ||||
| -rw-r--r-- | js/src/modal.js | 2 | ||||
| -rw-r--r-- | js/src/tooltip.js | 2 |
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' |
