Builder: remove item from singleton registry

https://fedorahosted.org/freeipa/ticket/3235
This commit is contained in:
Petr Vobornik
2013-05-06 16:22:25 +02:00
parent f1a83b6fdc
commit bf55d5b412
@@ -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);
},