fix the data checking

This commit is contained in:
Damien Churchill 2008-10-01 08:02:45 +00:00
commit 435ef112fb

View file

@ -24,6 +24,9 @@ Deluge.UI = {
filterChanged: this.filterChanged.bindWithEvent(this) filterChanged: this.filterChanged.bindWithEvent(this)
}; };
this.loadUi.delay(250, this); this.loadUi.delay(250, this);
window.addEvent('load', function(e) {
this.vbox.calculatePositions();
}.bindWithEvent(this));
}, },
loadUi: function() { loadUi: function() {
@ -146,7 +149,7 @@ Deluge.UI = {
}, },
updated: function(data) { updated: function(data) {
if ($defined(data)) return; if (!$defined(data)) return;
this.torrents = new Hash(data.torrents); this.torrents = new Hash(data.torrents);
this.stats = data.stats; this.stats = data.stats;
this.filters = data.filters; this.filters = data.filters;