diff PetActionButton.lua @ 277:4e325f1ea6e1

Construct the button name in the base class
author Flick
date Wed, 11 May 2011 11:27:36 -0700
parents 36a29870bf34
children 3dcfc0aad875 5b9c0164a491
line wrap: on
line diff
--- a/PetActionButton.lua	Wed May 11 11:11:59 2011 -0700
+++ b/PetActionButton.lua	Wed May 11 11:27:36 2011 -0700
@@ -79,9 +79,7 @@
 ReAction:RegisterBarType(Pet)
 
 function Pet:New( config, bar, idx, idHint )
-  local name = format("ReAction_%s_PetAction_%d",bar:GetName(),idx)
- 
-  self = Super.New(self, name, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" )
+  self = Super.New(self, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" )
 
   local f = self:GetFrame()
   if not f.autoCastTexture then