Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Works in modern browsers + IE9, but Modernizer has a polyfill baked in for function.bind.
- // Hat tip Paul Irish.
- var o = $( {} );
- $.subscribe = o.on.bind(o);
- $.unsubscribe = o.off.bind(o);
- $.publish = o.trigger.bind(o);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement