mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
ReaderUI: minor optimization (#10634)
This commit is contained in:
@@ -44,7 +44,7 @@ describe("Readerui module", function()
|
||||
end)
|
||||
it("should not reset ReaderUI.instance by mistake", function()
|
||||
ReaderUI:doShowReader(sample_epub) -- spins up a new, sane instance
|
||||
local new_readerui = ReaderUI:_getRunningInstance()
|
||||
local new_readerui = ReaderUI.instance
|
||||
assert.is.truthy(new_readerui.document)
|
||||
-- This *will* trip:
|
||||
-- * A pair of ReaderUI instance mimsatch warnings (on open/close) because it bypasses the safety of doShowReader!
|
||||
|
||||
Reference in New Issue
Block a user