diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-04-15 14:47:44 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:25 +0200 |
commit | 30276e6983ad126b469cf54f59fe0f8ab97363c7 (patch) | |
tree | 6061064b39d8372de7d9f0cc71fd62e748e16681 /install/ui | |
parent | 86f0b5eb64b87a34e9f66f0083c6ac789fb8f699 (diff) | |
download | freeipa-30276e6983ad126b469cf54f59fe0f8ab97363c7.tar.gz freeipa-30276e6983ad126b469cf54f59fe0f8ab97363c7.tar.xz freeipa-30276e6983ad126b469cf54f59fe0f8ab97363c7.zip |
Builder: add set method to Singleton_registry
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui')
-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 |