better callback functions for comet plugin

This commit is contained in:
Evan Prodromou 2009-07-15 15:31:57 -04:00
parent 1ae7357340
commit 5b081893a5

View File

@ -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(); } );
}
}
}();