- fix for custom modules generating a ton of errors if they're disabled while active (such as when changing profiles). there is still a bug where they stop running their updates like they're supposed to, but this will at least take care of the error spam

This commit is contained in:
Parnic
2010-09-21 13:50:35 +00:00
parent 631f3dd734
commit 1fa11ea3dd
3 changed files with 33 additions and 21 deletions

View File

@ -61,6 +61,12 @@ function IceBarElement.prototype:Enable()
self:RegisterFontStrings()
end
function IceBarElement.prototype:Disable(core)
IceBarElement.super.prototype.Disable(self, core)
self.frame:SetScript("OnUpdate", nil)
end
function IceBarElement.prototype:RegisterFontStrings()
if DogTag ~= nil and self.moduleSettings ~= nil and self.moduleSettings.usesDogTagStrings then