@domql/event
Advanced tools
Comparing version 2.5.179 to 2.5.182
@@ -39,7 +39,7 @@ "use strict"; | ||
}; | ||
const triggerEventOn = (param, element, options) => { | ||
const triggerEventOn = async (param, element, options) => { | ||
const appliedFunction = getOnOrPropsEvent(param, element); | ||
if (appliedFunction) { | ||
const { state, context } = element; | ||
return applyEvent(appliedFunction, element, state, context, options); | ||
return await applyEvent(appliedFunction, element, state, context, options); | ||
} | ||
@@ -46,0 +46,0 @@ }; |
@@ -15,7 +15,7 @@ 'use strict' | ||
export const triggerEventOn = (param, element, options) => { | ||
export const triggerEventOn = async (param, element, options) => { | ||
const appliedFunction = getOnOrPropsEvent(param, element) | ||
if (appliedFunction) { | ||
const { state, context } = element | ||
return applyEvent(appliedFunction, element, state, context, options) | ||
return await applyEvent(appliedFunction, element, state, context, options) | ||
} | ||
@@ -22,0 +22,0 @@ } |
{ | ||
"name": "@domql/event", | ||
"version": "2.5.179", | ||
"version": "2.5.182", | ||
"license": "MIT", | ||
@@ -33,3 +33,3 @@ "type": "module", | ||
}, | ||
"gitHead": "6dd81dc7848b03bd9bf564dbc82cd95af713ae21" | ||
"gitHead": "0071c581cbefc87854f08d3b658580055911ed24" | ||
} |
15070