mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-02 16:04:07 +03: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