diff options
author | XhmikosR <xhmikosr@gmail.com> | 2019-02-26 16:25:59 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-03-11 18:01:28 +0300 |
commit | 5ac1a126257fed6a56d78693b88ced28d8dc5c2d (patch) | |
tree | 28f0a3474fde03335bc8e2dcf90bff24304656c0 /js | |
parent | 5bcd6a29cd347657889709f54af90c45d969758b (diff) |
Remove assignment from return.
Diffstat (limited to 'js')
-rw-r--r-- | js/src/dom/eventHandler.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/src/dom/eventHandler.js b/js/src/dom/eventHandler.js index 2a326a55bf..f770577b39 100644 --- a/js/src/dom/eventHandler.js +++ b/js/src/dom/eventHandler.js @@ -87,9 +87,11 @@ function getUidEvent(element, uid) { function getEvent(element) { const uid = getUidEvent(element) + element.uidEvent = uid + eventRegistry[uid] = eventRegistry[uid] || {} - return eventRegistry[uid] = eventRegistry[uid] || {} + return eventRegistry[uid] } function fixEvent(event, element) { |