From 08a5e2c0ca9bfe52ba3f06da797ee7f7803463cc Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 18 Apr 2013 12:29:31 +0200 Subject: Builder: allow registration without factory or ctor https://fedorahosted.org/freeipa/ticket/3235 --- install/ui/src/freeipa/_base/Construct_registry.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'install/ui/src') diff --git a/install/ui/src/freeipa/_base/Construct_registry.js b/install/ui/src/freeipa/_base/Construct_registry.js index f399c944..bf423d5a 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.'; } -- cgit