rephrase jsdoc in Pad.js

This commit is contained in:
webzwo0i 2016-02-25 15:41:07 +01:00
parent 379689c794
commit 8117e18478

View file

@ -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 * Calculates the atext of a given revision using the last key revision, consecutively applying
* the given revision. * the revisions in between.
* *
* @param {Number} targetRev the wanted revision * @param {Number} targetRev the wanted revision
* @param {Function} callback * @param {Function} callback
*/ */
Pad.prototype.getInternalRevisionAText = function getInternalRevisionAText(targetRev, callback) { Pad.prototype.getInternalRevisionAText = function getInternalRevisionAText(targetRev, callback) {
var _this = this; 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) * Calculates the key revision preceding revNum
* @param {Number} revNum *
* returns {Number} * @param {Number} revNum
*/ * returns {Number}
*/
Pad.prototype.getKeyRevisionNumber = function getKeyRevisionNumber(revNum) { Pad.prototype.getKeyRevisionNumber = function getKeyRevisionNumber(revNum) {
return Math.floor(revNum / 100) * 100; return Math.floor(revNum / 100) * 100;
}; };