diff options
author | portix <portix@gmx.net> | 2012-08-12 23:13:07 +0200 |
---|---|---|
committer | portix <portix@gmx.net> | 2012-08-12 23:13:07 +0200 |
commit | 61efd0d0175fa6722afc3ca3328e88f645eea356 (patch) | |
tree | fdeafa1b4e7daac549165e52790e9465f6d65120 /extensions/formfiller | |
parent | 7dfbdb7f82bf2d19abd4dca9e64c4a8db9e1aebb (diff) | |
download | dwb-61efd0d0175fa6722afc3ca3328e88f645eea356.zip |
Use extensions.getConfig in extensions
Diffstat (limited to 'extensions/formfiller')
-rw-r--r-- | extensions/formfiller | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/extensions/formfiller b/extensions/formfiller index 3fa791ce..a4f52276 100644 --- a/extensions/formfiller +++ b/extensions/formfiller @@ -369,15 +369,7 @@ function fillForm() {//{{{ // init {{{ return { init : function (c) { - var key; - if (c === null || c === undefined) { - config = defaultConfig; - } - else { - for (key in defaultConfig) { - config[key] = typeof c[key] == typeof defaultConfig[key] ? c[key] : defaultConfig[key]; - } - } + config = extensions.getConfig(c, defaultConfig); bind(config.scGetForm, getForm, "formfillerGet"); bind(config.scFillForm, fillForm, "formfillerFill"); return true; |