JSdoc fixes
Ad: - update is alias for updateAll. - Make callback optional for save method
This commit is contained in:
parent
360063a5d2
commit
e4118c367d
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue