Skip to content

Instantly share code, notes, and snippets.

@arnogues
Last active January 3, 2016 08:19
Show Gist options
  • Save arnogues/8435009 to your computer and use it in GitHub Desktop.
Save arnogues/8435009 to your computer and use it in GitHub Desktop.
Simple Notifier that uses jQuery for notification
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