Builder: return null if no spec supplied

https://fedorahosted.org/freeipa/ticket/3235
This commit is contained in:
Petr Vobornik
2013-04-11 15:36:55 +02:00
parent 6a034abf95
commit 5665ed4676

View File

@@ -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) {