Builder: remove item from singleton registry
https://fedorahosted.org/freeipa/ticket/3235
This commit is contained in:
1 parent
f1a83b6fdc
commit
bf55d5b412
1 file changed
+12
@@ -77,6 +77,17 @@ define(['dojo/_base/declare',
|
||||
return obj;
|
||||
},
|
||||
|
||||
/**
|
||||
* Removes object of given type from registry
|
||||
*
|
||||
* @param {String} type
|
||||
*/
|
||||
remove: function(type) {
|
||||
|
||||
var undefined;
|
||||
this._map[type] = undefined;
|
||||
},
|
||||
|
||||
/**
|
||||
* Registers construction specification
|
||||
*
|
||||
@@ -93,6 +104,7 @@ define(['dojo/_base/declare',
|
||||
context: this
|
||||
};
|
||||
}
|
||||
|
||||
this.builder.registry.register(type, func, default_spec);
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user