From 05ed16bba131501c4a97c8635e457ec778be79cd Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 22 Apr 2022 06:43:49 +0300 Subject: Update event-handler.js --- js/src/dom/event-handler.js | 5 ++--- 1 file 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)) { -- cgit v1.2.3