Project Outline
 
$_
$(string, object)
ext(string, object)
each(function)
type(mixed)
get(string, object, function, function)
post(string, object, function, function)
addClass(string)
removeClass(string)
show(string)
attr(string, string)
text(string)
css(string, string)
append(string)
prepend(string)
html(string)
create(string, object)
add(string, function)
remove(string, string)
live(string, string, function)
delegate(string, string, function)
trigger(string, object)
get(string, bool)
set(string, mixed, bool)
remove(string, bool)
getAll(bool)
clear(bool)
«
Kis JS Docs

Module $_.event

Defined in: event.js.

Method Summary
create(string, object)Create a custom event
add(string, function)Adds an event that returns a callback when triggered on the selected event and selector
remove(string, string)Removes an event bound the the specified selector, event type, and callback
live(string, string, function)Binds a persistent event to the document
delegate(string, string, function)Binds an event to a parent object
trigger(string, object)Trigger an event to fire
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
$_.event.delegate(string, string, function)
Binds an event to a parent object
Eg. $_("#parent").delegate(".button", "click", do_something());
Parameters:
string target
string event_type
function callback
$_.event.trigger(string, object)
Trigger an event to fire
Eg. $_("#my_id").trigger('click');
Parameters:
string target
object event
Returns:
bool