Mercurial > wow > reaction
diff StanceButton.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 | 5b9c0164a491 |
line wrap: on
line diff
--- a/StanceButton.lua Wed May 11 11:11:59 2011 -0700 +++ b/StanceButton.lua Wed May 11 11:27:36 2011 -0700 @@ -53,9 +53,7 @@ ReAction:RegisterBarType(Stance) function Stance:New( config, bar, idx, idHint ) - local name = format("ReAction_%s_Stance_%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() local barFrame = bar:GetFrame()