Stop using newDict
Scott Sibley [08-17-10 - 22:29]
diff --git a/Modules/Text.lua b/Modules/Text.lua
index fd8b838..de133c3 100644
--- a/Modules/Text.lua
+++ b/Modules/Text.lua
@@ -187,7 +187,7 @@ if self.UnitExists("mouseovertarget") then
local name = self.UnitName("mouseovertarget")
return name
else
- return "None", self.newDict("r", 1, "g", 1, "b", 1)
+ return "None"
end
]],
colorRight = [[
@@ -196,12 +196,16 @@ if self.UnitExists("mouseovertarget") then
if self.UnitIsPlayer("mouseovertarget") then
c = self.RAID_CLASS_COLORS[select(2, self.UnitClass("mouseovertarget"))]
else
- c = self:new()
+ c = self.new()
c.r, c.g, c.b = self.UnitSelectionColor("mouseovertarget")
end
return c
else
- return self.newDict("r", 1, "g", 1, "b", 1)
+ c = self.new()
+ c.r = 1
+ c.g = 1
+ c.b = 1
+ return c
end
]],
rightUpdating = true,
diff --git a/StarTip.lua b/StarTip.lua
index 61b418b..308adac 100644
--- a/StarTip.lua
+++ b/StarTip.lua
@@ -192,6 +192,7 @@ do
return t
end
+ --[[
function StarTip.newDict(...)
local t = next(pool)
if t then
@@ -204,7 +205,7 @@ do
end
t.__starref__ = true
return t
- end
+ end ]]
function StarTip.del(...)
local t = select(1, ...)
if type(t) ~= "table" or not t.__starref__ then return end