From ed4a741e4dbc01283a61fc4e75502a20c8aafb00 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Tue, 28 Jul 2009 16:53:40 +0000 Subject: [PATCH] make the config constructor parameter optional --- deluge/ui/web/js/Deluge.OptionsManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/ui/web/js/Deluge.OptionsManager.js b/deluge/ui/web/js/Deluge.OptionsManager.js index d51ec067a..5ad08ea3f 100644 --- a/deluge/ui/web/js/Deluge.OptionsManager.js +++ b/deluge/ui/web/js/Deluge.OptionsManager.js @@ -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;