mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-28 11:26:16 -04:00
rephrase jsdoc in Pad.js
This commit is contained in:
parent
379689c794
commit
8117e18478
1 changed files with 11 additions and 10 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue