diff options
| author | Petr Vobornik <pvoborni@redhat.com> | 2014-09-03 14:45:05 +0200 |
|---|---|---|
| committer | Petr Vobornik <pvoborni@redhat.com> | 2014-09-30 10:47:03 +0200 |
| commit | ae5a34cbbc0cd3841647a2ad166bdfc65399da19 (patch) | |
| tree | ac3efde8a01b7ad0c7fa13b643afbe6b2672277d /install/ui/src/freeipa/_base | |
| parent | 749101db74219681735226664c1f83ebb4dc4aa7 (diff) | |
| download | freeipa-ae5a34cbbc0cd3841647a2ad166bdfc65399da19.tar.gz freeipa-ae5a34cbbc0cd3841647a2ad166bdfc65399da19.tar.xz freeipa-ae5a34cbbc0cd3841647a2ad166bdfc65399da19.zip | |
webui: new ID views section
https://fedorahosted.org/freeipa/ticket/4535
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'install/ui/src/freeipa/_base')
| -rw-r--r-- | install/ui/src/freeipa/_base/Singleton_registry.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/_base/Singleton_registry.js b/install/ui/src/freeipa/_base/Singleton_registry.js index e0c55ca14..6aa105456 100644 --- a/install/ui/src/freeipa/_base/Singleton_registry.js +++ b/install/ui/src/freeipa/_base/Singleton_registry.js @@ -116,6 +116,23 @@ define(['dojo/_base/declare', this.builder.registry.register(type, func, default_spec); }, + /** + * Makes a copy of construct specification of original type. Extends + * it with values in supplied construct specification. + * + * @param {string} org_type Original type + * @param {string} new_type New type + * @param {Object} construct_spec Construction specification + */ + copy: function(org_type, new_type, construct_spec) { + if (!lang.exists('builder.registry', this)) { + throw { + error: 'Object Initialized Exception: builder not initalized', + context: this + }; + } + this.builder.registry.copy(org_type, new_type, construct_spec); + }, constructor: function(spec) { |
