diff --git a/js/src/dom/event-handler.js b/js/src/dom/event-handler.js index 1544344a0f78..8bed9b39bb79 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)) {