JSdoc fixes

Ad:
 -  update is alias for updateAll.
 -  Make callback optional for save method
This commit is contained in:
Rand McKinney 2014-10-15 13:40:14 -07:00
parent 360063a5d2
commit e4118c367d
1 changed files with 4 additions and 1 deletions

View File

@ -243,6 +243,9 @@ PersistedModel.updateAll = function updateAll(where, data, cb) {
throwNotAttached(this.modelName, 'updateAll'); throwNotAttached(this.modelName, 'updateAll');
}; };
/**
* Alias for updateAll.
*/
PersistedModel.update = PersistedModel.updateAll; PersistedModel.update = PersistedModel.updateAll;
/** /**
@ -284,7 +287,7 @@ PersistedModel.count = function (where, cb) {
* @options {Object} [options] See below. * @options {Object} [options] See below.
* @property {Boolean} validate * @property {Boolean} validate
* @property {Boolean} throws * @property {Boolean} throws
* @param {Function} callback Callback function called with (err, obj). * @param {Function} [callback] Callback function called with (err, obj).
*/ */
PersistedModel.prototype.save = function (options, callback) { PersistedModel.prototype.save = function (options, callback) {