make the config constructor parameter optional

This commit is contained in:
Damien Churchill 2009-07-28 16:53:40 +00:00
parent 9e10012004
commit ed4a741e4d
1 changed files with 2 additions and 1 deletions

View File

@ -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;