Builder: return null if no spec supplied
https://fedorahosted.org/freeipa/ticket/3235
This commit is contained in:
1 parent
6a034abf95
commit
5665ed4676
1 file changed
+4
@@ -25,6 +25,8 @@ define(['dojo/_base/declare',
|
||||
'./Spec_mod'
|
||||
], function(declare, array, lang, construct, Spec_mod) {
|
||||
|
||||
var undefined;
|
||||
|
||||
var Builder = declare(null, {
|
||||
/**
|
||||
* Builds objects based on specication.
|
||||
@@ -81,6 +83,8 @@ define(['dojo/_base/declare',
|
||||
|
||||
var f,c;
|
||||
|
||||
if (spec === undefined || spec === null) return null;
|
||||
|
||||
context = context || {};
|
||||
|
||||
if (overrides) {
|
||||
|
||||
Reference in new issue
Block a user