1
0
Fork 0
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:
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) {