From 7f04b520b33ceba2be6fa4df379ab24f0527e609 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Sun, 13 Jan 2013 11:24:42 +0800 Subject: [PATCH] reset postInitCallback on ReaderUI:init --- frontend/ui/readerui.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/ui/readerui.lua b/frontend/ui/readerui.lua index 246d6580f..876a1564a 100644 --- a/frontend/ui/readerui.lua +++ b/frontend/ui/readerui.lua @@ -35,10 +35,11 @@ ReaderUI = InputContainer:new{ -- password for document unlock password = nil, - postInitCallback = {}, + postInitCallback = nil, } function ReaderUI:init() + self.postInitCallback = {} -- if we are not the top level dialog ourselves, it must be given in the table if not self.dialog then self.dialog = self @@ -154,7 +155,6 @@ function ReaderUI:init() for _,v in ipairs(self.postInitCallback) do v() end - self.postInitCallback = {} end function ReaderUI:onSetDimensions(dimen)