diff ActionButton.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 276165a0e860
line wrap: on
line diff
--- a/ActionButton.lua	Wed May 11 09:53:48 2011 -0700
+++ b/ActionButton.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
@@ -194,9 +194,7 @@
 ReAction:RegisterBarType(Action, true)
 
 function Action:New( config, bar, idx, idHint )
-  local name = format("ReAction_%s_Action_%d",bar:GetName(),idx)
- 
-  self = Super.New(self, name, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" )
+  self = Super.New(self, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" )
   self.barConfig = bar:GetConfig()
 
   local f = self:GetFrame()