Recommend this page to a friend! |
Download .zip |
Info | View files (11) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2014-05-02 (2 years ago) | Not enough user ratings | Total: 143 | All time: 315 This week: 27 |
Version | License | JavaScript version | Categories | |||
notify 1.0 | GNU General Publi... | 1.0 | Events |
Description | Author | ||||||||||||||
This object can bind listeners to dispatch custom events. |
|
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 |
File | Role | Description | ||
---|---|---|---|---|
test (4 files, 1 directory) | ||||
compile.sh | Data | Auxiliary data | ||
license.txt | Data | Auxiliary data | ||
notify.js | Class | Class source | ||
notify.min.js | Class | Class source packed | ||
README.md | Doc. | Documentation |
Files | / | test |
File | Role | Description | ||
---|---|---|---|---|
lib (2 files) | ||||
bind_trigger.js | Test | Unit test script | ||
changelog.md | Data | Auxiliary data | ||
development.html | Aux. | Auxiliary script | ||
minify.html | Aux. | Auxiliary script |
Files | / | test | / | lib |
File | Role | Description |
---|---|---|
qunit-1.11.0.css | Data | Auxiliary data |
qunit-1.11.0.js | Aux. | Unit test script |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.