From 2bd15e155f1385426128c214250b4c2ca0260a0c Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sun, 11 May 2014 20:31:42 -0400 Subject: [PATCH] remove listener before adding --- public/src/forum/home.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/src/forum/home.js b/public/src/forum/home.js index 122b524b8b..3796b2ca6f 100644 --- a/public/src/forum/home.js +++ b/public/src/forum/home.js @@ -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({