fix: move commands initilization from global init to local

If we call addAllCommands in initGlobalSettings, all
the readers will share the same commands and we cannot
adjust commands for a specific reader. I thus moved this
method call to Unireader:init() method.
This commit is contained in:
Qingping Hou
2012-03-30 14:10:04 +08:00
parent 937f445b92
commit 37dfc84d5a
3 changed files with 3 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ CREReader = UniReader:new{
}
function CREReader:init()
self:addAllCommands()
self:adjustCreReaderCommands()
end