mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
Fix xo error: use for...of
.
This commit is contained in:
parent
105687ac4a
commit
afc63ec887
@ -136,10 +136,7 @@ function bootstrapDelegationHandler(element, selector, fn) {
|
||||
}
|
||||
|
||||
function findHandler(events, handler, delegationSelector = null) {
|
||||
const uidList = Object.keys(events)
|
||||
|
||||
for (let i = 0; i < uidList.length; i++) {
|
||||
const uid = uidList[i]
|
||||
for (const uid of Object.keys(events)) {
|
||||
const event = events[uid]
|
||||
|
||||
if (event.originalHandler === handler && event.delegationSelector === delegationSelector) {
|
||||
|
Loading…
Reference in New Issue
Block a user