Skip to content

marc-costello/evt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An event library for the DOM

Kinda like jQuery events, without the jQuery part.

Join the chat at https://gitter.im/marc-costello/evt

Usage

Creating an evt object.

evt(DOMElement);
evt(DOMCollection);
evt("#element-id");

evt Methods

.on(); .one(); .off(); .raise();

namespacing, e.g: evt(element).on("click.mynamespace", handler); filtering, e.g: evt(document).on("click", "#my-element", handler); raise/trigger, e.g: evt(document).raise("my-event", payload);

About

An events library for the DOM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published