Builder: create Construct_registry by default in builder

https://fedorahosted.org/freeipa/ticket/3235
This commit is contained in:
Petr Vobornik committed 2013-05-06 16:22:26 +02:00
1 parent 621811470a
commit 12e10f345b
1 file changed
+3 -1
+3 -1
View File
@@ -22,8 +22,9 @@ define(['dojo/_base/declare',
'dojo/_base/array',
'dojo/_base/lang',
'./construct',
'./Construct_registry',
'./Spec_mod'
], function(declare, array, lang, construct, Spec_mod) {
], function(declare, array, lang, construct, Construct_registry, Spec_mod) {
var undefined;
@@ -297,6 +298,7 @@ define(['dojo/_base/declare',
if (spec.factory) this.factory = spec.factory;
if (spec.ctor) this.ctor = spec.ctor;
if (spec.registry) this.registry = spec.registry;
else this.registry = new Construct_registry();
if (spec.spec_mod) this.spec_mod = spec.spec_mod;
else this.spec_mod = new Spec_mod();
if (spec.pre_ops) this.pre_ops.push.call(this.pre_ops, spec.pre_ops);