Skip to content

jcamelis/notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notify

Light Weight library for bind and trigger custom events.

Methods:

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);

About

Light Weight library for subscribe and publish events.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published