From: Thierry Parmentelat Date: Thu, 7 Mar 2013 09:14:53 +0000 (+0100) Subject: use $ X-Git-Tag: myslice-django-0.1-1~62 X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=commitdiff_plain;h=b0dc863b78b03acd1b3f4851163066d17c6fadb0 use $ --- diff --git a/engine/static/js/manifold-pubsub.js b/engine/static/js/manifold-pubsub.js index ae9067f5..748f2409 100644 --- a/engine/static/js/manifold-pubsub.js +++ b/engine/static/js/manifold-pubsub.js @@ -57,11 +57,11 @@ function clone_object(obj) { } /* https://gist.github.com/661855 */ -(function(jQuery) { +(function($) { - var o = jQuery({}); + var o = $({}); - jQuery.subscribe = function( types, selector, data, fn) { + $.subscribe = function( types, selector, data, fn) { /* borrowed from jQuery */ if ( data == null && fn == null ) { // ( types, fn ) @@ -97,11 +97,11 @@ function clone_object(obj) { }]); }; - jQuery.unsubscribe = function() { + $.unsubscribe = function() { o.off.apply(o, arguments); }; - jQuery.publish = function() { + $.publish = function() { o.trigger.apply(o, arguments); };