diff --git a/module_char.lua b/module_char.lua index 3c6a522..e06faf4 100755 --- a/module_char.lua +++ b/module_char.lua @@ -126,6 +126,7 @@ function modul:Enable() for i = 1, #list do self['frame']:RegisterEvent(list[i]) end + self['frame']:SetScript("OnEvent", OnEvent) OnEvent(child, "PLAYER_EQUIPMENT_CHANGED") end function modul:Disable() @@ -133,6 +134,7 @@ function modul:Disable() for event, func in pairs(events) do self['frame']:UnregisterEvent(event) end + self['frame']:SetScript("OnEvent", nil) end local init = { Setup = function(self)