-
Notifications
You must be signed in to change notification settings - Fork 0
ikanedo/PubSubJS
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A simple blueprint for a a JavaScript Publisher Subscriber pattern. Sample code usage: ;(function(){ "use strict"; var observer = new PubSubHelper(); var subscriberFn = function(){ }; // subscriber method observer.subscribe(subscriberFn); window.onload = function(){ // notifier method observer.notify(); // unsubscribe method observer.unsubscribe(subscriberFn); }; })();
About
Simple blueprint for a JavaScript publisher/subscriber pattern
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published