mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-28 11:26:16 -04:00
document getKeyRevisionNumber
This commit is contained in:
parent
8626ac1d9a
commit
19bfad14ae
1 changed files with 5 additions and 0 deletions
|
@ -280,6 +280,11 @@ Pad.prototype.getValidRevisionRange = function getValidRevisionRange(startRev, e
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Gets the key revision that is the last revision with units' and tens' zero (ie % 100 == 0)
|
||||||
|
* @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