From b0dc863b78b03acd1b3f4851163066d17c6fadb0 Mon Sep 17 00:00:00 2001
From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Thu, 7 Mar 2013 10:14:53 +0100
Subject: [PATCH] use $

---
 engine/static/js/manifold-pubsub.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

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);
   };
 
-- 
2.47.0