Skip to content

Instantly share code, notes, and snippets.

@samme
Forked from cowboy/HEY-YOU.md
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samme/5178cea97fedd8316156 to your computer and use it in GitHub Desktop.
Save samme/5178cea97fedd8316156 to your computer and use it in GitHub Desktop.
/* jQuery Quantum Pub/Sub
* -- from --
* jQuery Tiny Pub/Sub v0.7 (http://benalman.com)
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */
(function( $ ) {
var o = $( {} ),
fn = $.fn,
proxy = $.proxy;
$.on = proxy( fn.on, o );
$.off = proxy( fn.off, o );
$.trigger = proxy( fn.trigger, o );
}( jQuery ));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment