fix removing the filter panels upon disconnect

This commit is contained in:
Damien Churchill 2010-04-28 10:45:38 +01:00
parent 028a35bfc8
commit c0fd70a856
1 changed files with 3 additions and 3 deletions

View File

@ -110,9 +110,9 @@ Deluge.Sidebar = Ext.extend(Ext.Panel, {
// private
onDisconnect: function() {
Ext.each(Ext.getKeys(this.panels), function(filter) {
this.remove(filter + '-panel');
}, this);
for (var filter in this.panels) {
this.remove(this.panels[filter]);
}
this.panels = {};
this.selected = null;
},