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
afc63ec8
Commit
afc63ec8
authored
6 years ago
by
XhmikosR
Browse files
Options
Download
Email Patches
Plain Diff
Fix xo error: use `for...of`.
parent
105687ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/src/dom/eventHandler.js
+1
-4
js/src/dom/eventHandler.js
with
1 addition
and
4 deletions
+1
-4
js/src/dom/eventHandler.js
+
1
-
4
View file @
afc63ec8
...
@@ -136,10 +136,7 @@ function bootstrapDelegationHandler(element, selector, fn) {
...
@@ -136,10 +136,7 @@ function bootstrapDelegationHandler(element, selector, fn) {
}
}
function
findHandler
(
events
,
handler
,
delegationSelector
=
null
)
{
function
findHandler
(
events
,
handler
,
delegationSelector
=
null
)
{
const
uidList
=
Object
.
keys
(
events
)
for
(
const
uid
of
Object
.
keys
(
events
))
{
for
(
let
i
=
0
;
i
<
uidList
.
length
;
i
++
)
{
const
uid
=
uidList
[
i
]
const
event
=
events
[
uid
]
const
event
=
events
[
uid
]
if
(
event
.
originalHandler
===
handler
&&
event
.
delegationSelector
===
delegationSelector
)
{
if
(
event
.
originalHandler
===
handler
&&
event
.
delegationSelector
===
delegationSelector
)
{
...
...
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