Module $_.event
Defined in: event.js.
Method Summary
add(string, function)Adds an event that returns a callback when triggered on the selected event and selector
Method Detail
$_.event.create(string, object)
Create a custom event
Eg. var event = $_("#selector").event.create('foo', {});
Parameters:
string | name | |
object?, Default: | data |
Returns:
object |
$_.event.add(string, function)
Adds an event that returns a callback when triggered on the selected event and selector
Eg. $_("#selector").event.add("click", do_something());
Parameters:
string | event | |
function | callback |
$_.event.remove(string, string)
Removes an event bound the the specified selector, event type, and callback
Eg. $_("#selector").event.remove("click", do_something());
Parameters:
string | event | |
string | callback |
$_.event.live(string, string, function)
Binds a persistent event to the document
Eg. $_.event.live(".button", "click", do_something());
Parameters:
string | target | |
string | event | |
function | callback |