mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-09-03 20:52:56 -05:00
Builder: remove item from singleton registry
https://fedorahosted.org/freeipa/ticket/3235
This commit is contained in:
@@ -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