Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/src/dom
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2020-05-02 16:31:51 +0300
committerXhmikosR <xhmikosr@gmail.com>2020-11-14 16:54:50 +0300
commit53ec604eb1bc8860128db832d8820f76531e1208 (patch)
treed9d8db799aab54b600ed11d6cebf2209bf001438 /js/src/dom
parent6d7bc54d222709275b0eb73bd6b974509332247a (diff)
Use `String.startsWith`
Diffstat (limited to 'js/src/dom')
-rw-r--r--js/src/dom/event-handler.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/dom/event-handler.js b/js/src/dom/event-handler.js
index 439a3f1881..ceb6a6e6ee 100644
--- a/js/src/dom/event-handler.js
+++ b/js/src/dom/event-handler.js
@@ -235,7 +235,7 @@ const EventHandler = {
const [delegation, originalHandler, typeEvent] = normalizeParams(originalTypeEvent, handler, delegationFn)
const inNamespace = typeEvent !== originalTypeEvent
const events = getEvent(element)
- const isNamespace = originalTypeEvent.charAt(0) === '.'
+ const isNamespace = originalTypeEvent.startsWith('.')
if (typeof originalHandler !== 'undefined') {
// Simplest case: handler is passed, remove that listener ONLY.