diff options
Diffstat (limited to 'install/ui/src/freeipa')
-rw-r--r-- | install/ui/src/freeipa/_base/Builder.js | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/install/ui/src/freeipa/_base/Builder.js b/install/ui/src/freeipa/_base/Builder.js index bcd607158..464a2c09d 100644 --- a/install/ui/src/freeipa/_base/Builder.js +++ b/install/ui/src/freeipa/_base/Builder.js @@ -158,15 +158,7 @@ define(['dojo/_base/declare', delete s.$pre_ops; delete s.$post_ops; - if (c) { - cs.ctor = c; - cs.spec = s; - } - else if (f) { - cs.factory = f; - cs.spec = s; - } - else if (t) { + if (t) { cs = this._query_registry(t); if (cs.spec && m) { lang.mixin(cs.spec, s); @@ -177,6 +169,9 @@ define(['dojo/_base/declare', cs.spec = s; } + if (c) cs.ctor = c; + if (f) cs.factory = f; + cs.pre_ops = cs.pre_ops || []; cs.post_ops = cs.post_ops || []; if (pre) cs.pre_ops.push.call(cs.pre_ops, pre); |