this part in the 1.2 example is extremely out-dated and needs to be removed. i keep forgetting to post it in the bug list. i'll go do it now.
Code:
OnUpdate = function(self, t)
-- this is run once every `self.updateTime` seconds.
self:Update()
end
somewhere in the 1.0 to 1.2 notes, it says that the OnUpdate function has been removed from our use in 1.2. instead you use metrognome.
example:
Code:
local metro = Metrognome:GetInstance('1')
function AddonName:Enable()
metro:Register(self.name, self.Update, 1, self)
metro:Start(self.name)
end
function AddonName:Disable()
metro:Unregister(self.name)
end