Commit eb321967 authored by Thibaut Frain's avatar Thibaut Frain

corrected bug (contact list was not refreshed after reconnection)

parent 7af6d611
......@@ -60,8 +60,9 @@
var that = this, contactItems = rosterIq.childNodes[0].childNodes, queue = new RSVP.Queue();
this.list = {};
this.el = $("#contact-list ul");
//that.el.listview();
this.el.hide();
this.el.html("");
that.el.listview();
[].forEach.call(contactItems, function(item) {
queue.push(function() {
var options = {}, jid = $(item).attr("jid");
......
......@@ -81,8 +81,9 @@
queue = new RSVP.Queue();
this.list = {};
this.el = $('#contact-list ul');
//that.el.listview();
this.el.hide();
this.el.html("");
that.el.listview();
[].forEach.call(contactItems, function (item) {
queue
.push(function () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment