mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-01 17:32:41 +02:00
Enable unicorn/no-for-loop
rule
This commit is contained in:
@@ -129,8 +129,8 @@ function bootstrapDelegationHandler(element, selector, fn) {
|
||||
function findHandler(events, handler, delegationSelector = null) {
|
||||
const uidEventList = Object.keys(events)
|
||||
|
||||
for (let i = 0, len = uidEventList.length; i < len; i++) {
|
||||
const event = events[uidEventList[i]]
|
||||
for (const uidEvent of uidEventList) {
|
||||
const event = events[uidEvent]
|
||||
|
||||
if (event.originalHandler === handler && event.delegationSelector === delegationSelector) {
|
||||
return event
|
||||
|
Reference in New Issue
Block a user