Fix: unexpendable TOC in some cases (#2394)

When on a page in a 2nd level section, after switching orientation,
TOC was stuck with the section we're in unexpandable.
This commit is contained in:
poire-z
2016-12-04 15:13:00 +01:00
committed by Qingping Hou
parent 08a92de179
commit bbba2799a5

View File

@@ -60,6 +60,7 @@ function ReaderToc:resetToc()
self.toc = nil
self.ticks = {}
self.collapsed_toc = {}
self.expanded_nodes = {}
end
function ReaderToc:onUpdateToc()