summaryrefslogtreecommitdiff
path: root/extensions/formfiller
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2012-08-12 23:13:07 +0200
committerportix <portix@gmx.net>2012-08-12 23:13:07 +0200
commit61efd0d0175fa6722afc3ca3328e88f645eea356 (patch)
treefdeafa1b4e7daac549165e52790e9465f6d65120 /extensions/formfiller
parent7dfbdb7f82bf2d19abd4dca9e64c4a8db9e1aebb (diff)
downloaddwb-61efd0d0175fa6722afc3ca3328e88f645eea356.zip
Use extensions.getConfig in extensions
Diffstat (limited to 'extensions/formfiller')
-rw-r--r--extensions/formfiller10
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;