Cleanup
Scott Sibley [08-27-10 - 04:05]
diff --git a/Modules/LCDDisplay.lua b/Modules/LCDDisplay.lua
index e45a0c2..e2b10a9 100644
--- a/Modules/LCDDisplay.lua
+++ b/Modules/LCDDisplay.lua
@@ -203,7 +203,6 @@ function mod:RebuildOpts()
name = "Delete",
type = "execute",
func = function()
- StarTip:Print("delete")
self.db.profile.config[k] = nil
StarTip:RebuildOpts()
end,
diff --git a/Modules/Text.lua b/Modules/Text.lua
index 2880149..2c391ad 100644
--- a/Modules/Text.lua
+++ b/Modules/Text.lua
@@ -577,8 +577,8 @@ function mod:CreateLines()
if not v.leftUpdating then v.update = 0 end
v.color = v.colorLeft
v.leftObj = WidgetText:New(mod.core, v.name, v, 0, 0, 0, StarTip.db.profile.errorLevel, updateFontString, mod.leftLines[lineNum])
- v.lineNum = lineNum
v.update = tmp
+ v.lineNum = lineNum
end
tbl = StarTip.new(v.leftObj, mod.leftLines[lineNum])
fontStringsToDraw[tbl] = true
diff --git a/StarTip.lua b/StarTip.lua
index e897550..eec45e7 100644
--- a/StarTip.lua
+++ b/StarTip.lua
@@ -176,7 +176,7 @@ local options = {
}
do
- local pool = setmetatable({},{__mode='k'})
+ local pool = {}--setmetatable({},{__mode='k'})
local newCount, delCount = 0, 0
function StarTip.new(...)
local t = next(pool)
@@ -191,7 +191,9 @@ do
newtbl = true
t = {...}
end
- --StarTip:Print("new/recycled table " .. GetTime(), "new " .. newCount, "del " .. delCount)
+ if newtbl then
+ --StarTip:Print("new/recycled table " .. GetTime(), "new " .. newCount, "del " .. delCount, newtbl)
+ end
t.__starref__ = true
newCount = newCount + 1
return t, newtbl