Subscriber Class
Stores the subscriber information to be used when the event fires.
Constructor
Methods
contains
(
Boolean
-
fn
-
context
Returns true if the fn and obj match this objects properties. Used by the unsubscribe method to match the right subscriber.
Parameters:
Returns:
Boolean:
true if the supplied arguments match this
subscriber's signature.
notify
(
-
args
-
ce
Executes the subscriber.
Parameters:
-
args
ArrayArguments array for the subscriber.
-
ce
CustomEventThe custom event that sent the notification.
Properties
fn
Function
The callback that will be execute when the event fires This is wrapped by Y.rbind if obj was supplied.
once
Unknown
This listener only reacts to the event once