don't fire the connect event until the client has finished reloading

it's methods
This commit is contained in:
Damien Churchill 2009-04-28 09:09:08 +00:00
parent a579c3b2c7
commit b4e56e923b
2 changed files with 4 additions and 2 deletions

View File

@ -196,7 +196,9 @@ Copyright:
Deluge.Client.web.connect(id, {
success: function(methods) {
Deluge.Client.reloadMethods();
Deluge.Events.fire('connect');
Deluge.Client.on('connected', function(e) {
Deluge.Events.fire('connect');
}, this, {single: true});
}
});
if (this.running) window.clearInterval(this.running);

File diff suppressed because one or more lines are too long