summaryrefslogtreecommitdiff
path: root/plugins/Comet
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Comet')
-rw-r--r--plugins/Comet/cometupdate.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Comet/cometupdate.js b/plugins/Comet/cometupdate.js
index 432778c19..72cca004b 100644
--- a/plugins/Comet/cometupdate.js
+++ b/plugins/Comet/cometupdate.js
@@ -22,8 +22,8 @@ var CometUpdate = function()
_favorurl = favorurl;
_replyurl = replyurl;
_deleteurl = deleteurl;
- _cometd.subscribe(timeline, RealtimeUpdater.receive);
- $(window).unload(leave);
+ _cometd.subscribe(timeline, function(message) { RealtimeUpdate.receive(message.data) });
+ $(window).unload(function() { _cometd.disconnect(); } );
}
}
}();