From e4118c367d2e429238ae0450b69dafb175816fcf Mon Sep 17 00:00:00 2001 From: Rand McKinney Date: Wed, 15 Oct 2014 13:40:14 -0700 Subject: [PATCH] JSdoc fixes Ad: - update is alias for updateAll. - Make callback optional for save method --- lib/persisted-model.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/persisted-model.js b/lib/persisted-model.js index 5b298960..62856285 100644 --- a/lib/persisted-model.js +++ b/lib/persisted-model.js @@ -243,6 +243,9 @@ PersistedModel.updateAll = function updateAll(where, data, cb) { throwNotAttached(this.modelName, 'updateAll'); }; +/** + * Alias for updateAll. + */ PersistedModel.update = PersistedModel.updateAll; /** @@ -284,7 +287,7 @@ PersistedModel.count = function (where, cb) { * @options {Object} [options] See below. * @property {Boolean} validate * @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) {