Mercurial > wow > reaction
diff BagButton.lua @ 286:77609bfa804e stable
Merge 1.1 beta 8 to stable
author | Flick |
---|---|
date | Sat, 11 Jun 2011 10:57:00 -0700 |
parents | 4e325f1ea6e1 |
children | d1a56601267b |
line wrap: on
line diff
--- a/BagButton.lua Wed May 11 09:53:48 2011 -0700 +++ b/BagButton.lua Sat Jun 11 10:57:00 2011 -0700 @@ -1,5 +1,5 @@ -local addonName, addonTable = ... -local ReAction = addonTable.ReAction +local _, ns = ... +local ReAction = ns.ReAction local L = ReAction.L local _G = _G local CreateFrame = CreateFrame @@ -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()