diff options
author | XhmikosR <xhmikosr@gmail.com> | 2019-03-29 02:11:46 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-04-10 15:18:57 +0300 |
commit | afc63ec887d4c4dc176e76a057195369f2ba64fd (patch) | |
tree | 3de8d6db429dd5f591b8f95b78793ecb4b35b683 /js | |
parent | 105687ac4a7c13b854a8039db1665489edf37c5e (diff) |
Fix xo error: use `for...of`.
Diffstat (limited to 'js')
-rw-r--r-- | js/src/dom/eventHandler.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/js/src/dom/eventHandler.js b/js/src/dom/eventHandler.js index 65c671facd..9a1e370921 100644 --- a/js/src/dom/eventHandler.js +++ b/js/src/dom/eventHandler.js @@ -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) { |