Made some varaibales local

This commit is contained in:
WS64
2014-07-03 19:30:21 +02:00
parent c441f151a5
commit 256bad8203

View File

@@ -99,6 +99,8 @@ function ReaderToc:getTocTitleOfCurrentPage()
end
function ReaderToc:_getChapterPagesLeft(pageno,pages)
local i
local j = 0
if not self.toc then
-- build toc when needed.
self:fillToc()
@@ -109,7 +111,6 @@ function ReaderToc:_getChapterPagesLeft(pageno,pages)
return ""
end
j=0
if #self.toc > 0 then
for i = 1, #self.toc do
v = self.toc[i]
@@ -131,6 +132,8 @@ function ReaderToc:_getChapterPagesLeft(pageno,pages)
end
function ReaderToc:_getChapterPagesDone(pageno)
local i
local j = 0
if not self.toc then
-- build toc when needed.
self:fillToc()
@@ -141,7 +144,6 @@ function ReaderToc:_getChapterPagesDone(pageno)
return ""
end
j=0
if #self.toc > 0 then
for i = 1, #self.toc do
v = self.toc[i]