mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Builder: return null if no spec supplied
https://fedorahosted.org/freeipa/ticket/3235
This commit is contained in:
@@ -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