new plastic.helper.Events()
helper/events.js, line 10
plastic.js Events (PubSub Pattern)
Adapted from Amplify.js into a commented prototype-oriented implementation
Members
-
private_subs
-
Methods
-
pub(topic){boolean}
helper/events.js, line 27 -
Publish Event
Name Type Description topic
string -
sub(topic, context, callback, priority){function}
helper/events.js, line 62 -
Subscribe Event
Name Type Description topic
string context
Object | function callback
function priority
number | function -
unsub(topic, context, callback)
helper/events.js, line 119 -
Unsubscribe Event
Name Type Description topic
string context
Object | function callback
function