craftyjs.github.com

Crafty.trigger

public void Crafty.trigger(String eventName, * data)

eventName
Name of the event to trigger
data
Arbitrary data to pass into the callback as an argument

This method will trigger every single callback attached to the event name. This means every global event and every entity that has a callback.

See Also