remove listener before adding

v1.18.x
barisusakli 11 years ago
parent 1a9ab9d1d2
commit 2bd15e155f

@ -15,6 +15,7 @@ define(function() {
home.init = function() {
app.enterRoom('home');
socket.removeListener('event:new_post', home.onNewPost);
socket.on('event:new_post', home.onNewPost);
$('.home .category-header').tooltip({

Loading…
Cancel
Save