From fb88d988701e2f3e52e3aca52072ea054f6021ec Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Wed, 18 Feb 2015 09:13:47 -0800 Subject: [PATCH] Remove trailing spaces --- lib/persisted-model.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/lib/persisted-model.js b/lib/persisted-model.js index 7c4d1612..853df230 100644 --- a/lib/persisted-model.js +++ b/lib/persisted-model.js @@ -81,7 +81,7 @@ function convertNullToNotFoundError(ctx, cb) { * Create new instance of Model, and save to database. * * @param {Object}|[{Object}] data Optional data argument. Can be either a single model instance or an array of instances. - * + * * @callback {Function} callback Callback function called with `cb(err, obj)` signature. * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). * @param {Object} models Model instances or null. @@ -129,7 +129,7 @@ PersistedModel.findOrCreate._delegate = true; * * @callback {Function} callback Callback function called with `(err, exists)` arguments. Required. * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). - * @param {Boolean} exists True if the instance with the specified ID exists; false otherwise. + * @param {Boolean} exists True if the instance with the specified ID exists; false otherwise. */ PersistedModel.exists = function exists(id, cb) { @@ -142,8 +142,7 @@ PersistedModel.exists = function exists(id, cb) { * @param {*} id Primary key value * @callback {Function} callback Callback function called with `(err, instance)` arguments. Required. * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). - * @param {Object} instance Model instance matching the specified ID or null if no instance matches. - + * @param {Object} instance Model instance matching the specified ID or null if no instance matches. */ PersistedModel.findById = function find(id, cb) { @@ -199,7 +198,7 @@ PersistedModel.find = function find(params, cb) { * { key: val, key2: {gt: 'val2'}, ...} * ``` *
See [Where filter](http://docs.strongloop.com/display/LB/Where+filter). - * + * * @callback {Function} callback Callback function called with `(err, returned-instance)` arguments. Required. * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). * @param {Array} model First model instance that matches the filter or null if none found. @@ -217,8 +216,8 @@ PersistedModel.findOne = function findOne(params, cb) { * { key: val, key2: {gt: 'val2'}, ...} * ``` *
See [Where filter](http://docs.strongloop.com/display/LB/Where+filter). - * - * @callback {Function} callback Optional callback function called with `(err)` argument. + * + * @callback {Function} callback Optional callback function called with `(err)` argument. * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). */ @@ -257,7 +256,7 @@ PersistedModel.deleteAll = PersistedModel.destroyAll; * @callback {Function} callback Callback function called with `(err, count)` arguments. Required. * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). * @param {Number} count Number of instances updated. - * + * */ PersistedModel.updateAll = function updateAll(where, data, cb) { throwNotAttached(this.modelName, 'updateAll'); @@ -311,9 +310,9 @@ PersistedModel.count = function(where, cb) { * @property {Boolean} validate Perform validation before saving. Default is true. * @property {Boolean} throws If true, throw a validation error; WARNING: This can crash Node. * If false, report the error via callback. Default is false. - * @callback {Function} callback Optional callback function called with `(err, obj)` arguments. + * @callback {Function} callback Optional callback function called with `(err, obj)` arguments. * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). - * @param {Object} instance Model instance saved or created. + * @param {Object} instance Model instance saved or created. */ PersistedModel.prototype.save = function(options, callback) {