mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Fix xo error: use for...of
.
This commit is contained in:
parent
105687ac4a
commit
afc63ec887
1 changed files with 1 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue