diff options
author | XhmikosR <xhmikosr@gmail.com> | 2019-10-07 09:31:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-07 09:31:12 +0300 |
commit | 622c914a3acc1ab933b3e89d8abfdd63feeb4016 (patch) | |
tree | 78f033cc71c4663321889456952e18e2f502a78a /js | |
parent | 60559d44a2166708a4dc2f6ccb835052da08ab65 (diff) |
Update devDependencies. (#29447)
Diffstat (limited to 'js')
-rw-r--r-- | js/src/dom/event-handler.js | 2 | ||||
-rw-r--r-- | js/src/dom/polyfill.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/js/src/dom/event-handler.js b/js/src/dom/event-handler.js index 98ebddaa23..b1484e5171 100644 --- a/js/src/dom/event-handler.js +++ b/js/src/dom/event-handler.js @@ -262,7 +262,7 @@ const EventHandler = { if (isNamespace) { Object.keys(events) .forEach(elementEvent => { - removeNamespacedHandlers(element, events, elementEvent, originalTypeEvent.substr(1)) + removeNamespacedHandlers(element, events, elementEvent, originalTypeEvent.slice(1)) }) } diff --git a/js/src/dom/polyfill.js b/js/src/dom/polyfill.js index fd857cb38c..9e74c7cd2d 100644 --- a/js/src/dom/polyfill.js +++ b/js/src/dom/polyfill.js @@ -95,7 +95,7 @@ const supportScopeQuery = (() => { try { element.querySelectorAll(':scope *') - } catch (error) { + } catch (_) { return false } |