change it so the event is only subscribed to for a single fire

This commit is contained in:
Damien Churchill 2009-08-11 23:15:20 +00:00
parent 7c0590f399
commit 444272344e

View File

@ -74,9 +74,11 @@ Deluge.UI = {
Deluge.Client = new Ext.ux.util.RpcClient({
url: '/json'
});
Deluge.Client.on('connected', function(e) {
Deluge.Login.show();
});
}, this, {single: true});
this.update = this.update.bind(this);
},