forked from GNUsocial/gnu-social
better callback functions for comet plugin
This commit is contained in:
parent
1ae7357340
commit
5b081893a5
@ -22,8 +22,8 @@ var CometUpdate = function()
|
|||||||
_favorurl = favorurl;
|
_favorurl = favorurl;
|
||||||
_replyurl = replyurl;
|
_replyurl = replyurl;
|
||||||
_deleteurl = deleteurl;
|
_deleteurl = deleteurl;
|
||||||
_cometd.subscribe(timeline, RealtimeUpdater.receive);
|
_cometd.subscribe(timeline, function(message) { RealtimeUpdate.receive(message.data) });
|
||||||
$(window).unload(leave);
|
$(window).unload(function() { _cometd.disconnect(); } );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}();
|
}();
|
||||||
|
Loading…
Reference in New Issue
Block a user