mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
doc(fix): avoid module keyword
This commit is contained in:
@@ -30,9 +30,9 @@ function Dbg:turnOn()
|
||||
self.is_on = true
|
||||
|
||||
Dbg_mt.__call = function(dbg, ...) LvDEBUG(math.huge, ...) end
|
||||
Dbg.guard = function(_, module, method, pre_guard, post_guard)
|
||||
local old_method = module[method]
|
||||
module[method] = function(...)
|
||||
Dbg.guard = function(_, mod, method, pre_guard, post_guard)
|
||||
local old_method = mod[method]
|
||||
mod[method] = function(...)
|
||||
if pre_guard then
|
||||
pre_guard(...)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user