- removed a few old CancelScheduledEvent calls on bars that weren't actually scheduling any repeating timers any more and added a few CancelTimers to modules that weren't previously canceling their scheduled timers

- converted CancelScheduledEvent to CancelTimer for modules that are still scheduling repeating timers...not sure why CancelScheduledEvent didn't throw any errors (since i don't see how it exists) but whatever
- removed a bunch of "function() self:Thing() end" closures in ScheduleRepeatingTimer calls that didn't need to be there
This commit is contained in:
Parnic
2010-09-11 01:42:29 +00:00
parent 907bee2104
commit 9d40348b80
16 changed files with 39 additions and 35 deletions

View File

@ -1,6 +1,7 @@
local AceOO = AceLibrary("AceOO-2.0")
local TargetTargetMana = AceOO.Class(IceTargetMana)
TargetTargetMana.prototype.scheduledEvent = nil
local SelfDisplayModeOptions = {"Hide", "Normal"}
@ -60,13 +61,13 @@ function TargetTargetMana.prototype:Enable(core)
self.determineColor = false
TargetTargetMana.super.prototype.Enable(self, core)
self:ScheduleRepeatingTimer(function() self:Update("targettarget") end, 0.1)
self.scheduledEvent = self:ScheduleRepeatingTimer("Update", 0.1, "targettarget")
end
function TargetTargetMana.prototype:Disable(core)
TargetTargetMana.super.prototype.Disable(self, core)
self:CancelScheduledEvent(self.elementName)
self:CancelTimer(self.scheduledEvent, true)
end
function TargetTargetMana.prototype:Update(unit)