Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
2d87ec9a
Commit
2d87ec9a
authored
9 years ago
by
Jon Tewksbury
Browse files
Options
Download
Email Patches
Plain Diff
Add eslint no-undef rule and resolve errors
parent
36d20a85
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
js/.eslintrc
+3
-2
js/.eslintrc
js/src/modal.js
+1
-1
js/src/modal.js
js/src/tooltip.js
+2
-0
js/src/tooltip.js
with
6 additions
and
3 deletions
+6
-3
js/.eslintrc
+
3
-
2
View file @
2d87ec9a
...
...
@@ -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,
...
...
This diff is collapsed.
Click to expand it.
js/src/modal.js
+
1
-
1
View file @
2d87ec9a
...
...
@@ -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
))
{
th
at
.
_ignoreBackdropClick
=
true
th
is
.
_ignoreBackdropClick
=
true
}
})
})
...
...
This diff is collapsed.
Click to expand it.
js/src/tooltip.js
+
2
-
0
View file @
2d87ec9a
/* global Tether */
import
Util
from
'
./util
'
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets