Light Weight library for bind and trigger custom events.
bind('topic', callback);
notify.bind('waitingStart', function() {
//your code
});
trigger('topic', data);
var data = {
message: 'Please Wait',
timeout: 10000
}
notify.trigger('waitingStart', data);
unbind('topic');
notify.bind('waitingStart', function() {
//your code
});
notify.bind('waitingStart.mynamespace', function() {
//your code
});
notify.unbind('waitingStart', data);