In AceEvent:TriggerEvent, a local variable called AceEvent_debugTable is initialized to the value of AceEvent.debugTable and used later on.
Later, in OnUpdate(), AceEvent_debugTable is checked. But being out of scope, only a non-existant global AceEvent_debugTable is queried. The same in ScheduleEvent().
The following patch correct the issue
Index: AceEvent-2.0.lua
===================================================================
--- AceEvent-2.0.lua (revision 20058)
+++ AceEvent-2.0.lua (working copy)
@@ -395,7 +395,7 @@
end
local event = v.event
local mem, time
- if AceEvent_debugTable then
+ if AceEvent.debugTable then
mem, time = gcinfo(), GetTime()
end
if type(event) == "function" then
@@ -404,7 +404,7 @@
else
AceEvent:TriggerEvent(event, unpack(v))
end
- if AceEvent_debugTable then
+ if AceEvent.debugTable then
mem, time = gcinfo() - mem, GetTime() - time
v.mem = v.mem + mem
v.timeSpent = v.timeSpent + time
@@ -470,7 +470,7 @@
t.self = self
t.id = id or t
t.repeatDelay = repeating and delay
- if AceEvent_debugTable then
+ if AceEvent.debugTable then
t.mem = 0
t.count = 0
t.timeSpent = 0
In AceEvent:TriggerEvent, a local variable called AceEvent_debugTable is initialized to the value of AceEvent.debugTable and used later on.
Later, in OnUpdate(), AceEvent_debugTable is checked. But being out of scope, only a non-existant global AceEvent_debugTable is queried. The same in ScheduleEvent().
The following patch correct the issue