mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 04:24:27 +00:00
make the config constructor parameter optional
This commit is contained in:
parent
9e10012004
commit
ed4a741e4d
@ -39,9 +39,10 @@ Copyright:
|
||||
Deluge.OptionsManager = Ext.extend(Ext.util.Observable, {
|
||||
|
||||
constructor: function(config) {
|
||||
config = config || {};
|
||||
this.binds = {};
|
||||
this.changed = {};
|
||||
this.defaults = config['defaults'] || {};
|
||||
this.defaults = (config && config['defaults']) || {};
|
||||
this.options = {};
|
||||
this.currentId = null;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user