diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-09-06 15:27:06 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-10-16 18:08:17 +0200 |
commit | efafd7fe871bc368b91db78bb132abb027141a24 (patch) | |
tree | f6d71bae937e31c7090828382af8b404b1ce7e1f /install/ui/src/freeipa/_base/Construct_registry.js | |
parent | 3fa304d95ec59efe0eb1cb8241d88a173802b172 (diff) | |
download | freeipa-efafd7fe871bc368b91db78bb132abb027141a24.tar.gz freeipa-efafd7fe871bc368b91db78bb132abb027141a24.tar.xz freeipa-efafd7fe871bc368b91db78bb132abb027141a24.zip |
Web UI source code annotation
Part of ongoing Web UI documentation effort. Source code is annotated in a way that it can be processed by documentation generator.
Diffstat (limited to 'install/ui/src/freeipa/_base/Construct_registry.js')
-rw-r--r-- | install/ui/src/freeipa/_base/Construct_registry.js | 62 |
1 files changed, 30 insertions, 32 deletions
diff --git a/install/ui/src/freeipa/_base/Construct_registry.js b/install/ui/src/freeipa/_base/Construct_registry.js index d9489add3..934af6ef1 100644 --- a/install/ui/src/freeipa/_base/Construct_registry.js +++ b/install/ui/src/freeipa/_base/Construct_registry.js @@ -24,12 +24,12 @@ define(['dojo/_base/declare', './construct' ], function(declare, array, lang, construct) { + /** + * Registry for storing construction specification. + * @class _base.Construct_registry + */ var Construct_registry = declare(null, { - /** - * Registry for storing construction specification. - * @class - * @name Construct_registry - */ + /** * Internal map for construction specifications. @@ -40,27 +40,25 @@ define(['dojo/_base/declare', /** * Registers construction specification * - * @param type {String|Object} type or construction spec - * @param func {Function} ctor or factory function - * @param [default_spec] {Object} default spec object for given type - * - * @returns Object + * // May be defined by single construction spec object: + * var construction_spec = { + * type: String, + * factory: Function, + * ctor: Function, + * spec: Object, + * pre_ops: [], + * post_ops: [] + * }; + * register(construction_spec); * - * Examples: + * // or by defining them separately as params: + * register(type, factory|ctor, spec); * - * May be defined by single construction spec object: - * var construction_spec = { - * type: String, - * factory: Function, - * ctor: Function, - * spec: Object, - * pre_ops: [], - * post_ops: [] - * }; - * register(construction_spec); + * @param {string|Object} type type or construction spec + * @param {Function} func ctor or factory function + * @param {Object} [default_spec] default spec object for given type * - * or by defining them separately as params: - * register(type, factory|ctor, spec); + * @returns {Object} */ register: function(type, func, default_spec) { @@ -91,9 +89,9 @@ define(['dojo/_base/declare', * Makes a copy of construct specification of original type. Extends * it with values in supplied construct specification. * - * @param {String} Original type - * @param {String} New type - * @param {Object} Construction 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) { @@ -128,9 +126,9 @@ define(['dojo/_base/declare', * * When op is Object, the object gets mixed in into spec. * - * @param {type} type + * @param {string} type * @param {Function|Object} op - * @param {Boolean} move op to first position + * @param {boolean} move op to first position */ register_pre_op: function(type, op, first) { @@ -150,9 +148,9 @@ define(['dojo/_base/declare', * When op is Object, the object gets mixed in into built object. Use * with caution. * - * @param {type} type + * @param {string} type * @param {Function|Object} op - * @param {Boolean} move op to first position + * @param {boolean} first move op to first position */ register_post_op: function(type, op, first) { @@ -164,8 +162,8 @@ define(['dojo/_base/declare', /** * Gets construction specification for given type. * - * @param type {String} Type name - * @returns Object|null + * @param {string} string Type name + * @returns {Object|null} */ get: function(type) { return this._map[type] || null; |