Mercurial > wow > reaction
diff BagButton.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 | d1a56601267b |
line wrap: on
line diff
--- a/BagButton.lua Wed May 11 11:11:59 2011 -0700 +++ b/BagButton.lua Wed May 11 11:27:36 2011 -0700 @@ -49,8 +49,6 @@ -- function BagBase:New( btnCfg, bar, idx, idHint ) - local name = format("ReAction_%s_Bag_%d",bar:GetName(),idx) - -- use a variable private leaf implementation class -- unlike traditional OO programming, we can initialize the leaf -- class before initializing its parent @@ -60,7 +58,7 @@ elseif idx == 6 then class = Keyring end - self = class:New(name, btnCfg, bar, idx) + self = class:New(btnCfg, bar, idx) local f = self:GetFrame() local config = self:GetConfig()