lib/registry fix jsdoc comments

Add missing names.
This commit is contained in:
Miroslav Bajtoš 2014-06-09 07:46:32 +02:00
parent 1de6325a80
commit 63843b41fc
1 changed files with 5 additions and 4 deletions

View File

@ -78,7 +78,7 @@ registry.createModel = function (name, properties, options) {
* });
* ```
*
* @options {Object} model configuration
* @options {Object} config model configuration
* @property {String} name Unique name.
* @property {Object} [properties] Model properties
* @property {Object} [options] Model options. Options can be specified on the
@ -121,7 +121,7 @@ function buildModelOptionsFromConfig(config) {
/**
* Alter an existing Model class.
* @param {Model} ModelCtor The model constructor to alter.
* @options {Object} Additional configuration to apply
* @options {Object} config Additional configuration to apply
* @property {DataSource} dataSource Attach the model to a dataSource.
* @property {Object} [relations] Model relations to add/update.
*
@ -185,9 +185,10 @@ registry.getModelByType = function(modelType) {
* Create a data source with passing the provided options to the connector.
*
* @param {String} name Optional name.
* @options {Object} Data Source options
* @options {Object} options Data Source options
* @property {Object} connector LoopBack connector.
* @property {*} Other properties See the relevant connector documentation.
* @property {*} [*] Other connector properties.
* See the relevant connector documentation.
*
* @header loopback.createDataSource(name, options)
*/