Class: Caman.Event
Defined in: | src/core/event.coffee |
Overview
Event system that can be used to register callbacks that get fired during certain times in the render process.
Class Method Summary
- + (void) trigger(target, type, data = null) Trigger an event.
- + (void) listen(target, type, fn) Listen for an event.
Class Method Details
+ (void) trigger(target, type, data = null)
Trigger an event.
+ (void) listen(target, type, fn)
+ (void) listen(type, fn)
Listen for an event. Optionally bind the listen to a single instance or all instances.