EventHandler: rename functions & variables

This commit is contained in:
GeoSot 2022-04-14 12:52:12 +03:00
parent 505e0235b9
commit 66fcd62569
1 changed files with 4 additions and 4 deletions

View 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