Quantcast

Use hookscript instead

Adrian L Lange [08-07-09 - 04:43]
Use hookscript instead
Filename
oUF_Experience.lua
diff --git a/oUF_Experience.lua b/oUF_Experience.lua
index 0c62ace..ce3d578 100644
--- a/oUF_Experience.lua
+++ b/oUF_Experience.lua
@@ -120,8 +120,8 @@ local function enable(self, unit)

 		if(bar.Tooltip) then
 			bar:EnableMouse()
-			bar:SetScript('OnLeave', GameTooltip_Hide)
-			bar:SetScript('OnEnter', tooltip)
+			bar:HookScript('OnLeave', GameTooltip_Hide)
+			bar:HookScript('OnEnter', tooltip)
 		end

 		argChecks(self)