diff options
Diffstat (limited to 'install/ui/src')
-rw-r--r-- | install/ui/src/freeipa/_base/Singleton_registry.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/_base/Singleton_registry.js b/install/ui/src/freeipa/_base/Singleton_registry.js index 0eb995c74..fe8065468 100644 --- a/install/ui/src/freeipa/_base/Singleton_registry.js +++ b/install/ui/src/freeipa/_base/Singleton_registry.js @@ -78,6 +78,16 @@ define(['dojo/_base/declare', }, /** + * Set object of given type - overwrites existing + * + * @param {String} type + * @param {anything} object + */ + set: function (type, obj) { + this._map[type] = obj; + }, + + /** * Removes object of given type from registry * * @param {String} type |