diff options
-rw-r--r-- | install/ui/src/freeipa/_base/Construct_registry.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/install/ui/src/freeipa/_base/Construct_registry.js b/install/ui/src/freeipa/_base/Construct_registry.js index f399c9446..bf423d5ab 100644 --- a/install/ui/src/freeipa/_base/Construct_registry.js +++ b/install/ui/src/freeipa/_base/Construct_registry.js @@ -181,10 +181,6 @@ define(['dojo/_base/declare', if (typeof spec.type !== 'string' || spec.type === '') { throw 'Argument exception: Invalid type'; } - if (typeof spec.factory !== 'function' && - typeof spec.ctor !== 'function') { - throw 'Argument exception: No factory or ctor defined'; - } if (!lang.isArrayLike(spec.pre_ops)) { throw 'Argument exception: Invalid pre_ops type.'; } |