Class: Wraith.Base
Defined in: | src/base.coffee |
Overview
The base class for all Wraith objects. Includes binding to events, and emitting events.
Direct Known Subclasses
Wraith.BaseView, Wraith.Collection, Wraith.Model
Instance Method Summary
- - (void) constructor() Constructor Constructor
- - (void) bind(ev, cb) Bound Binds the given function (cb) to the given event (ev)
- - (void) unbind(ev, cb) Bound Unbinds the given function (cb) from the given event (ev)
- - (void) emit(event, args...) Bound Emits the given event to listneers
- - (void) proxy(fn) Used to proxy a function call through this object.
Constructor Details
- (void) constructor()
Constructor
Instance Method Details
- (void) bind(ev, cb) (bound)
Binds the given function (cb) to the given event (ev)
- (void) unbind(ev, cb) (bound)
Unbinds the given function (cb) from the given event (ev)
- (void) emit(event, args...) (bound)
Emits the given event to listneers
- (void) proxy(fn)
Used to proxy a function call through this object.
Borrowed from Spine