Browse Source

Removed debug.

pull/48/head
Simon Eisenmann 12 years ago
parent
commit
20725908c9
  1. 20
      static/js/services/buddylist.js

20
static/js/services/buddylist.js

@ -547,34 +547,22 @@ define(['underscore', 'modernizr', 'avltree', 'text!partials/buddy.html', 'text!
Buddylist.prototype.onClosed = function() { Buddylist.prototype.onClosed = function() {
console.log("Closed"); //console.log("Closed");
// Remove pending stuff from queue.
this.queue = []; this.queue = [];
// Trigger left events for all sessions.
var data = {}; var data = {};
var sessions = buddySession.sessions(); var sessions = buddySession.sessions();
for (var id in sessions) { for (var id in sessions) {
if (sessions.hasOwnProperty(id)) { if (sessions.hasOwnProperty(id)) {
console.log("close id", id); //console.log("close id", id);
data.Id = id; data.Id = id;
this.onLeft(data, false, true); 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) { Buddylist.prototype.onContactAdded = function(contact) {

Loading…
Cancel
Save