Trigger loadMoreHistory with semantic history

pull/1/head
yflory 2020-10-05 17:52:52 +02:00
parent d702cbf548
commit 9a3238fb3b
1 changed files with 4 additions and 3 deletions

View File

@ -328,9 +328,6 @@ define([
if (isNaN(i)) { return; }
if (i > 0) { i = 0; }
if (i < -(states.length - 2)) { i = -(states.length - 2); }
if (i <= -(states.length - 11)) {
loadMore();
}
var idx = getIndex(i);
if (semantic && i !== c) {
@ -346,6 +343,10 @@ define([
}
}
if (i <= -(states.length - 11)) {
loadMore();
}
if (blockOnly) { return states[idx]; }
var val = states[idx].getContent().doc;