remove listeners before adding

v1.18.x
barisusakli 11 years ago
parent 24aa166ed5
commit e6371ad539

@ -42,6 +42,7 @@ define('forum/topic/events', ['forum/topic/browsing', 'forum/topic/postTools', '
}; };
Events.init = function() { Events.init = function() {
Events.removeListeners();
for(var eventName in events) { for(var eventName in events) {
if (events.hasOwnProperty(eventName)) { if (events.hasOwnProperty(eventName)) {
socket.on(eventName, events[eventName]); socket.on(eventName, events[eventName]);

Loading…
Cancel
Save