From 20725908c9933dbf86ced10ac4d955987f7c8998 Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Fri, 6 Jun 2014 16:32:54 +0200 Subject: [PATCH] Removed debug. --- static/js/services/buddylist.js | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/static/js/services/buddylist.js b/static/js/services/buddylist.js index 252e54dd..833e4562 100644 --- a/static/js/services/buddylist.js +++ b/static/js/services/buddylist.js @@ -547,34 +547,22 @@ define(['underscore', 'modernizr', 'avltree', 'text!partials/buddy.html', 'text! Buddylist.prototype.onClosed = function() { - console.log("Closed"); + //console.log("Closed"); + // Remove pending stuff from queue. this.queue = []; + // Trigger left events for all sessions. var data = {}; var sessions = buddySession.sessions(); for (var id in sessions) { if (sessions.hasOwnProperty(id)) { - console.log("close id", id); + //console.log("close id", id); data.Id = id; this.onLeft(data, false, true); } } - console.log("buddyCount after close", buddyCount, this.tree.keys()); - - /* - this.$element.empty(); - buddyCount = 0; - buddyData.clear(); - this.tree.clear(); - this.actionElements = {}; - this.queue = []; - */ - - - - }; Buddylist.prototype.onContactAdded = function(contact) {