UNPKG

xatto

Version:

xatto is View Layer Library based on Function and Context using VirtualDOM. This is developed by forking from jorgebucaran/superfine.

12 lines (11 loc) 283 B
/** * @param eventHandler {Function} * @return {Function} */ export function currentOnly (eventHandler: Function) { return (context, detail, props, event) => { if (event.currentTarget === event.target) { return eventHandler(context, detail, props, event) } } }