From e6371ad539a414a9922cacbb0b23d3363c1c509f Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sat, 28 Jun 2014 16:36:30 -0400 Subject: [PATCH] remove listeners before adding --- public/src/forum/topic/events.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/src/forum/topic/events.js b/public/src/forum/topic/events.js index 60d9e69dd4..133c7baeec 100644 --- a/public/src/forum/topic/events.js +++ b/public/src/forum/topic/events.js @@ -42,6 +42,7 @@ define('forum/topic/events', ['forum/topic/browsing', 'forum/topic/postTools', ' }; Events.init = function() { + Events.removeListeners(); for(var eventName in events) { if (events.hasOwnProperty(eventName)) { socket.on(eventName, events[eventName]);