Skip to content
GitLab
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
99c3119c
Commit
99c3119c
authored
7 years ago
by
Johann-S
Committed by
XhmikosR
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Return a new function with Util.noop
parent
b5077a1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
js/src/tooltip.js
+2
-2
js/src/tooltip.js
js/src/util.js
+2
-1
js/src/util.js
with
4 additions
and
3 deletions
+4
-3
js/src/tooltip.js
+
2
-
2
View file @
99c3119c
...
...
@@ -322,7 +322,7 @@ class Tooltip {
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
if
(
'
ontouchstart
'
in
document
.
documentElement
)
{
Util
.
makeArray
(
document
.
body
.
children
).
forEach
((
element
)
=>
{
EventHandler
.
on
(
element
,
'
mouseover
'
,
Util
.
noop
)
EventHandler
.
on
(
element
,
'
mouseover
'
,
Util
.
noop
()
)
})
}
...
...
@@ -381,7 +381,7 @@ class Tooltip {
// empty mouseover listeners we added for iOS support
if
(
'
ontouchstart
'
in
document
.
documentElement
)
{
Util
.
makeArray
(
document
.
body
.
children
)
.
forEach
((
element
)
=>
EventHandler
.
off
(
element
,
'
mouseover
'
,
Util
.
noop
))
.
forEach
((
element
)
=>
EventHandler
.
off
(
element
,
'
mouseover
'
,
Util
.
noop
()
))
}
this
.
_activeTrigger
[
Trigger
.
CLICK
]
=
false
...
...
This diff is collapsed.
Click to expand it.
js/src/util.js
+
2
-
1
View file @
99c3119c
...
...
@@ -235,8 +235,9 @@ const Util = {
return
Util
.
findShadowRoot
(
element
.
parentNode
)
},
// eslint-disable-next-line no-empty-function
noop
()
{
// eslint-disable-next-line no-empty-function
return
function
()
{}
},
get
jQuery
()
{
...
...
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