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
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2022-04-22 06:43:49 +0300
committerMark Otto <markd.otto@gmail.com>2022-05-16 03:24:03 +0300
commit05ed16bba131501c4a97c8635e457ec778be79cd (patch)
tree849eeaf0f541ec3ef3ce7adce4e7d2fa7772d8b7
parenta1e1ef7e52234d9678b3452a6a1e4f4b5894b608 (diff)
Update event-handler.jsgs/patches-on-event-handler
-rw-r--r--js/src/dom/event-handler.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/js/src/dom/event-handler.js b/js/src/dom/event-handler.js
index 1544344a0f..8bed9b39bb 100644
--- a/js/src/dom/event-handler.js
+++ b/js/src/dom/event-handler.js
@@ -128,9 +128,8 @@ function findHandler(events, callable, delegationSelector = null) {
function normalizeParameters(originalTypeEvent, handler, delegationFunction) {
const isDelegated = typeof handler === 'string'
- const callable = isDelegated ?
- delegationFunction :
- (handler || delegationFunction) // todo: tooltip passes `false` instead of selector, so we need to check
+ // todo: tooltip passes `false` instead of selector, so we need to check
+ const callable = isDelegated ? delegationFunction : (handler || delegationFunction)
let typeEvent = getTypeEvent(originalTypeEvent)
if (!nativeEvents.has(typeEvent)) {