browser-event-lite

Event helper for browser

npm install browser-event-lite
23 downloads in the last month
@version  0.1.4
@date     2014-03-10

Event

Browser event helper. Download compressed or uncompressed source.

Usage

function hi(){
    alert("Hei")    
    // alert just once
    Event.remove(el, "click", hi)
}

Event.add(el, "click", hi)
// handle also touch events
Event.touch_as_mouse(el)

Licence

Copyright (c) 2012 Lauri Rooden <lauri@rooden.ee>
The MIT License

npm loves you