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;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes object of given type from registry
|
||||||
|
*
|
||||||
|
* @param {String} type
|
||||||
|
*/
|
||||||
|
remove: function(type) {
|
||||||
|
|
||||||
|
var undefined;
|
||||||
|
this._map[type] = undefined;
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers construction specification
|
* Registers construction specification
|
||||||
*
|
*
|
||||||
@@ -93,6 +104,7 @@ define(['dojo/_base/declare',
|
|||||||
context: this
|
context: this
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
this.builder.registry.register(type, func, default_spec);
|
this.builder.registry.register(type, func, default_spec);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user