Author: damoxc
Revision: 5556
Log:
make the config constructor parameter optional
Diff:
Modified: trunk/deluge/ui/web/js/Deluge.OptionsManager.js
===================================================================
--- trunk/deluge/ui/web/js/Deluge.OptionsManager.js 2009-07-28 07:39:30 UTC
(rev 5555)
+++ trunk/deluge/ui/web/js/Deluge.OptionsManager.js 2009-07-28 16:53:40 UTC
(rev 5556)
@@ -39,9 +39,10 @@
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;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---