a lot of refactoring, performance issue fixed

This commit is contained in:
Manuel Simon Hirsig
2016-08-03 18:14:18 +02:00
parent 02ee8f7c6c
commit b374c7946f
16 changed files with 453 additions and 501 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ local DEFAULT_COL_INFO = {{width=1}}
local function GetTableIndex(tbl, value)
for i, v in pairs(tbl) do
for i, v in tbl do
if value == v then
return i
end
@@ -344,7 +344,7 @@ local methods = {
col:SetFontString(text)
col:SetHeight(ST_ROW_HEIGHT)
col:RegisterForClicks('LeftButtonUp', 'RightButtonUp')
for name, func in pairs(defaultColScripts) do
for name, func in defaultColScripts do
col:SetScript(name, func)
end
col.st = st
@@ -443,7 +443,7 @@ function public.CreateScrollingTable(parent)
st.headLine = Aux.gui.horizontal_line(st, 0)
-- add all the methods
for name, func in pairs(methods) do
for name, func in methods do
st[name] = func
end