From 8117e1847838813c506a2cff0a7b8e68cc6c0fe1 Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Thu, 25 Feb 2016 15:41:07 +0100 Subject: [PATCH] rephrase jsdoc in Pad.js --- src/node/db/Pad.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/node/db/Pad.js b/src/node/db/Pad.js index df2c3fbbb..7ec0b6180 100644 --- a/src/node/db/Pad.js +++ b/src/node/db/Pad.js @@ -162,12 +162,12 @@ Pad.prototype.getAllAuthors = function getAllAuthors() { }; /* -* Returns an atext at a given revision. It selects the last key rev before targetRev and applies all changesets up to -* the given revision. -* -* @param {Number} targetRev the wanted revision -* @param {Function} callback -*/ + * Calculates the atext of a given revision using the last key revision, consecutively applying + * the revisions in between. + * + * @param {Number} targetRev the wanted revision + * @param {Function} callback + */ Pad.prototype.getInternalRevisionAText = function getInternalRevisionAText(targetRev, callback) { var _this = this; @@ -288,10 +288,11 @@ Pad.prototype.getValidRevisionRange = function getValidRevisionRange(startRev, e }; /* -* Gets the key revision that is the last revision with units' and tens' zero (ie % 100 == 0) -* @param {Number} revNum -* returns {Number} -*/ + * Calculates the key revision preceding revNum + * + * @param {Number} revNum + * returns {Number} + */ Pad.prototype.getKeyRevisionNumber = function getKeyRevisionNumber(revNum) { return Math.floor(revNum / 100) * 100; };