js-utils-event-helper
v0.2.0-beta.1
Published
JS Event dispacher build with TS
Downloads
5
Maintainers
Readme
JS 事件监听派发类(JS Event dispacher build with TS)
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|