Last active
January 3, 2016 08:19
-
-
Save jmcorpdev/8435009 to your computer and use it in GitHub Desktop.
Simple Notifier that uses jQuery for notification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Notifier = { | |
register: function (evt, func) { | |
$(Notifier).on(evt, func); | |
}, | |
remove: function (evt, func) { | |
$(Notifier).off(evt, func); | |
}, | |
notify: function (evt, params) { | |
$(this).trigger(evt, params); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment