on off trigger

/* jQuery XXS Pub/Sub
 * @tdecs
 * Dual licensed under the MIT and GPL licenses */
 
(function ($, o) {
 
  o = $({});
 
  $.subscribe = function(e, h) {
    o.on.call(o, e, h);
  };
 
  $.unsubscribe = function(e, h) {
    o.off.call(o, e, h);
  };
 
  $.publish = function(e, h) {
    o.trigger.call(o, e, h);
  };
 
}(jQuery));

  

var pubsub = _.extend({}, Backbone.Event);

  

posted @ 2013-03-22 22:27  leamiko  阅读(123)  评论(0编辑  收藏  举报
document.getElementById('MySignature') && document.getElementById('MySignature').style.display = "none"; document.getElementById('MySignature') && document.getElementById('blog_post_info').style.display = "none";