serialize cache when closing ReaderUI other than closing document

This commit is contained in:
chrox
2014-05-15 19:41:10 +08:00
parent caa87241ed
commit 17741e292b
2 changed files with 3 additions and 1 deletions

View File

@@ -78,7 +78,6 @@ function Document:close()
self.is_open = false
self._document:close()
end
Cache:serialize()
end
-- this might be overridden by a document implementation