notify: Bind listeners to dispatch custom events

Recommend this page to a friend!
  Info   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 147 All time: 338 This week: 14Up
Version License JavaScript version Categories
notify 1.0GNU General Publi...1.0Events
Description Author

This object can bind listeners to dispatch custom events.

It can register listener functions to handle events with given names.

The object can also trigger an event by calling the registered listener functions associated to the event name.

Picture of Javier Camelis
Name: Javier Camelis <contact>
Classes: 3 packages by
Country: Argentina Argentina
Age: ???
All time rank: 951 in Argentina Argentina
Week rank: 6 Up1 in Argentina Argentina Equal
Innovation award
Innovation award
Nominee: 1x

Details
notify ====== Light Weight library for bind and trigger custom events. Methods: -------- bind('topic', callback); ```javascript notify.bind('waitingStart', function() { //your code }); ``` trigger('topic', data); ```javascript var data = { message: 'Please Wait', timeout: 10000 } notify.trigger('waitingStart', data); ``` unbind('topic'); ```javascript notify.bind('waitingStart', function() { //your code }); notify.bind('waitingStart.mynamespace', function() { //your code }); notify.unbind('waitingStart', data); ```
  Files folder image Files  
File Role Description
Files folder imagetest (4 files, 1 directory)
Accessible without login Plain text file compile.sh Data Auxiliary data
Accessible without login Plain text file license.txt Data Auxiliary data
Plain text file notify.js Class Class source
Plain text file notify.min.js Class Class source packed
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  test  
File Role Description
Files folder imagelib (2 files)
  Accessible without login Plain text file bind_trigger.js Test Unit test script
  Accessible without login Plain text file changelog.md Data Auxiliary data
  Accessible without login Plain text file development.html Aux. Auxiliary script
  Accessible without login Plain text file minify.html Aux. Auxiliary script

  Files folder image Files  /  test  /  lib  
File Role Description
  Accessible without login Plain text file qunit-1.11.0.css Data Auxiliary data
  Accessible without login Plain text file qunit-1.11.0.js Aux. Unit test script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:147
This week:0
All time:338
This week:14Up