Pad: Reuse `getKeyRevisionNumber` when testing if key rev
parent
79e7697c1c
commit
0d52f985bd
|
@ -90,7 +90,7 @@ class Pad {
|
||||||
// ex. getNumForAuthor
|
// ex. getNumForAuthor
|
||||||
if (authorId !== '') this.pool.putAttrib(['author', authorId]);
|
if (authorId !== '') this.pool.putAttrib(['author', authorId]);
|
||||||
|
|
||||||
if (newRev % 100 === 0) {
|
if (newRev === this.getKeyRevisionNumber(newRev)) {
|
||||||
newRevData.meta.pool = this.pool;
|
newRevData.meta.pool = this.pool;
|
||||||
newRevData.meta.atext = this.atext;
|
newRevData.meta.atext = this.atext;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue