From 752191a04f4a0cbe53edd052fde5bfd905f5d682 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 2 Jan 2021 12:07:31 -0500 Subject: [PATCH] Make sure journal slot pointers are properly reset For when the same page store is recycled later. --- src/js/pagestore.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/pagestore.js b/src/js/pagestore.js index 3e168aea0..729590de5 100644 --- a/src/js/pagestore.js +++ b/src/js/pagestore.js @@ -357,6 +357,7 @@ const PageStore = class { } this.journal = []; this.journalLastUncommittedOrigin = undefined; + this.journalLastCommitted = this.journalLastUncommitted = -1; if ( pageStoreJunkyard.length < pageStoreJunkyardMax ) { pageStoreJunkyard.push(this); }