Quantcast

Minor cleanup

p3lim-52096 [01-10-09 - 16:50]
Minor cleanup

git-svn-id: svn://svn.wowinterface.com/pError-161/trunk@11 7a612bb6-1b7b-4f5f-b58b-e1cc54d1b6b6
Filename
pError/pError.lua
diff --git a/pError/pError.lua b/pError/pError.lua
index 1c26489..37d39d9 100644
--- a/pError/pError.lua
+++ b/pError/pError.lua
@@ -1,6 +1,4 @@
 local addon = CreateFrame('Frame')
-local orig = UIErrorsFrame_OnEvent
-
 local defaults = {
 	[ERR_OUT_OF_ENERGY] = true,
 	[ERR_SPELL_COOLDOWN] = true,
@@ -30,7 +28,7 @@ local function OnEvent(self, event, ...)
 		end
 	end

-	return orig(self, event, ...)
+	return UIErrorsFrame_OnEvent(self, event, ...)
 end

 addon:RegisterEvent('ADDON_LOADED')