0
0
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:
XhmikosR 2019-03-29 01:11:46 +02:00
parent 105687ac4a
commit afc63ec887

View File

@ -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) {