refactoring module registration in readerui
now every module can be looked up in readerui so that unit test of these modules is possible.
This commit is contained in:
1 parent
d01ae145b8
commit
e34ad5ffe5
3 files changed
+97
-94
No files matched your search
@@ -17,7 +17,9 @@ function ReaderLink:init()
|
||||
if Device:isTouchDevice() then
|
||||
self:initGesListener()
|
||||
end
|
||||
self.ui.menu:registerToMainMenu(self)
|
||||
self.ui:registerPostInitCallback(function()
|
||||
self.ui.menu:registerToMainMenu(self)
|
||||
end)
|
||||
end
|
||||
|
||||
function ReaderLink:onReadSettings(config)
|
||||
|
||||
Reference in new issue
Block a user