donner
v1.3.1
Published
donner fires dom events on en element. blitz handles events
Downloads
9
Readme
donner
donner handles dom events
API
Table of Contents
donner
dispatch an Event with an optional data object from a DOM Node or any EventTarget
Parameters
element
EventTargettype
stringdata
any (optional, default{}
)
blitz
listen to events dispatched by a DOM Node or any EventTarget
Parameters
dispatch
dispatch a global Event with an optional data object from the document Object
Parameters
type
stringtarget
EventTargetdata
any (optional, default{}
)
strom
parses the event object and creates a flat Object with all commonly used attributes like {target, currentTarget, type, ...data}
Parameters
event
CustomEvent
Returns Object eventObject