diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-04-15 15:15:26 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:26 +0200 |
commit | eee43395dd9a76c98fa201eb5752702f8b00d2cf (patch) | |
tree | 9d776a56c0705d2c923fbd211ad30f4ea459a8e5 /install | |
parent | 30276e6983ad126b469cf54f59fe0f8ab97363c7 (diff) | |
download | freeipa-eee43395dd9a76c98fa201eb5752702f8b00d2cf.tar.gz freeipa-eee43395dd9a76c98fa201eb5752702f8b00d2cf.tar.xz freeipa-eee43395dd9a76c98fa201eb5752702f8b00d2cf.zip |
Builder: build type without prior registration
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install')
-rw-r--r-- | install/ui/src/freeipa/_base/Builder.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/install/ui/src/freeipa/_base/Builder.js b/install/ui/src/freeipa/_base/Builder.js index 54555c930..446a2a07f 100644 --- a/install/ui/src/freeipa/_base/Builder.js +++ b/install/ui/src/freeipa/_base/Builder.js @@ -175,13 +175,13 @@ define(['dojo/_base/declare', cs.pre_ops = cs.pre_ops || []; cs.post_ops = cs.post_ops || []; if (pre) cs.pre_ops.push.call(cs.pre_ops, pre); - if (pre) cs.post_ops.push.call(cs.post_ops, post); - cs.spec = cs.spec || {}; + if (post) cs.post_ops.push.call(cs.post_ops, post); + } - if (!cs.factory && !cs.ctor) { - if (this.ctor) cs.ctor = this.ctor; - else if (this.factory) cs.factory = this.factory; - } + cs.spec = cs.spec || {}; + if (!cs.factory && !cs.ctor) { + if (this.ctor) cs.ctor = this.ctor; + else if (this.factory) cs.factory = this.factory; } return cs; @@ -194,7 +194,7 @@ define(['dojo/_base/declare', if (this.registry) { var cs = this.registry.get(type); - if (!cs) throw construct.no_cs_for_type_error(type); + if (!cs) cs = {}; cs = construct.clone(cs); return cs; } else { |