diff options
Diffstat (limited to 'js/src/dom')
-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 } |