git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use $
[myslice.git]
/
engine
/
static
/
js
/
manifold-pubsub.js
diff --git
a/engine/static/js/manifold-pubsub.js
b/engine/static/js/manifold-pubsub.js
index
ae9067f
..
748f240
100644
(file)
--- 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 */
}
/* 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 )
/* 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);
};
o.off.apply(o, arguments);
};
-
jQuery
.publish = function() {
+
$
.publish = function() {
o.trigger.apply(o, arguments);
};
o.trigger.apply(o, arguments);
};