Skip to content

Instantly share code, notes, and snippets.

View heldrida's full-sized avatar
🇲🇿
Peace for Mozambique!

Helder Oliveira heldrida

🇲🇿
Peace for Mozambique!
View GitHub Profile
@heldrida
heldrida / jquery.ba-tinypubsub.js
Created March 21, 2012 11:57 — forked from cowboy/HEY-YOU.md
jQuery Tiny Pub/Sub: A really, really, REALLY tiny pub/sub implementation for jQuery.
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011
* http://benalman.com/
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */
(function($) {
var o = $({});
$.subscribe = function() {
o.on.apply(o, arguments);