Subscribable.subscribe

Subscribe a delegate to a particular event emmited by object

interface Subscribable(EventType, Callback)
subscribe
(
EventType type
,
Callback subscriber
)

Parameters

type EventType

type of event emmited by object

subscriber Callback

the callback to be called on event emmited

Return Value

typeof(this)

Meta