Sha256: 93362a0ee5640b2d5ccb66babb6d719a4efd834c01361a1172a8bc91a99af63b

Contents?: true

Size: 514 Bytes

Versions: 9

Compression:

Stored size: 514 Bytes

Contents

/*!
 * jQuery Tiny Pub/Sub - v0.3 - 11/4/2010
 * http://benalman.com/
 *
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
 
(function($){
 
  var o = $({});
 
  $.subscribe = function() {
    o.bind.apply( o, arguments );
  };
 
  $.unsubscribe = function() {
    o.unbind.apply( o, arguments );
  };
 
  $.publish = function() {
    console.log("Publish: " + arguments[0]);
    o.trigger.apply( o, arguments );
  };
 
})(jQuery);

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
parade-0.10.2 lib/public/js/jquery-pubsub.js
parade-0.10.1 lib/public/js/jquery-pubsub.js
parade-0.10.0 lib/public/js/jquery-pubsub.js
parade-0.9.2 lib/public/js/jquery-pubsub.js
parade-0.9.1 lib/public/js/jquery-pubsub.js
parade-0.9.0 lib/public/js/jquery-pubsub.js
parade-0.8.2 lib/public/js/jquery-pubsub.js
parade-0.8.1 lib/public/js/jquery-pubsub.js
parade-0.8.0 lib/public/js/jquery-pubsub.js