Skip to content

Commit

Permalink
Remove JSDocs for scopeMethods.add(acInst) and scopeMethods.remove(ac…
Browse files Browse the repository at this point in the history
…Inst)
  • Loading branch information
crandmck committed May 22, 2014
1 parent 00226dd commit 5937f0c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/relations.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function lookupModel(models, modelName) {
*```
* @param {Object|String} anotherClass Model object (or String name of model) to which you are creating the relationship.
* @options {Object} parameters Configuration parameters; see below.
* @property {String} as
* @property {String} as Name of the property in the referring model that corresponds to the foreign key field in the related model.
* @property {String} foreignKey Property name of foreign key field.
* @property {Object} model Model object
*/
Expand Down Expand Up @@ -166,9 +166,9 @@ Relation.hasMany = function hasMany(anotherClass, params) {
});
};

/**
/*!
* Add the target model instance to the 'hasMany' relation
* @param {Object|ID) acInst The actual instance or id value
* @param {Object|ID} acInst The actual instance or id value
*/
scopeMethods.add = function (acInst, done) {
var data = {};
Expand All @@ -181,7 +181,7 @@ Relation.hasMany = function hasMany(anotherClass, params) {
params.through.findOrCreate({where: query}, data, done);
};

/**
/*!
* Remove the target model instance from the 'hasMany' relation
* @param {Object|ID) acInst The actual instance or id value
*/
Expand Down Expand Up @@ -306,7 +306,7 @@ Relation.hasMany = function hasMany(anotherClass, params) {
*
* @param {Class|String} anotherClass Model object (or String name of model) to which you are creating the relationship.
* @options {Object} params Configuration parameters; see below.
* @property {String} as Can be 'propertyName'
* @property {String} as Name of the property in the referring model that corresponds to the foreign key field in the related model.
* @property {String} foreignKey Name of foreign key property.
*
*/
Expand Down Expand Up @@ -471,7 +471,7 @@ Relation.belongsTo = function (anotherClass, params) {
* @param {String|Object} anotherClass Model object (or String name of model) to which you are creating the relationship.
* the relation
* @options {Object} params Configuration parameters; see below.
* @property {String} as
* @property {String} as Name of the property in the referring model that corresponds to the foreign key field in the related model.
* @property {String} foreignKey Property name of foreign key field.
* @property {Object} model Model object
*/
Expand Down

0 comments on commit 5937f0c

Please sign in to comment.