]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
EventHandler: rename functions & variables
authorGeoSot <geo.sotis@gmail.com>
Thu, 14 Apr 2022 09:52:12 +0000 (12:52 +0300)
committerGeoSot <geo.sotis@gmail.com>
Thu, 30 Jun 2022 19:55:03 +0000 (22:55 +0300)
js/src/dom/event-handler.js

index 0aa628c66dbd4b52caa97beea54e4c7eec59f9d8..db0a0b8a1d296cf022b35448c50118eac9e672f0 100644 (file)
@@ -170,10 +170,10 @@ function addHandler(element, originalTypeEvent, handler, delegationFunction, one
     return
   }
 
-  const uid = makeEventUid(callable, originalTypeEvent.replace(namespaceRegex, ''))
-  const fn = isDelegated ?
-    bootstrapDelegationHandler(element, handler, callable) :
-    bootstrapHandler(element, callable)
+  const uid = getUidEvent(originalHandler, originalTypeEvent.replace(namespaceRegex, ''))
+  const fn = delegation ?
+    bootstrapDelegationHandler(element, handler, delegationFunction) :
+    bootstrapHandler(element, handler)
 
   fn.delegationSelector = isDelegated ? handler : null
   fn.callable = callable