js-utils-event-helper
TypeScript icon, indicating that this package has built-in type declarations

0.2.0-beta.1 • Public • Published

JS 事件监听派发类(JS Event dispacher build with TS)

Version

en|中文文档

API

public

name type description
addEventListener method add event listener
removeListener method remove event listener
dispatchEvent method dispacth an event listener
dispatchEventWith method dispach an event with some event params
once method create once event listener
hasEventListener method check event dispacth target is has expected event
notifyListener method core event dispach handler

private

name type description
$addListener method add event listener
$insertEventBin method add the event to event queue
$removeEventBin method remove the event from event queue

参考资料

Package Sidebar

Install

npm i js-utils-event-helper

Weekly Downloads

0

Version

0.2.0-beta.1

License

MIT

Unpacked Size

51.7 kB

Total Files

31

Last publish

Collaborators

  • jesonhu