more refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-19 17:44:19 +02:00
parent fc91332865
commit 012ccfb21d
14 changed files with 168 additions and 194 deletions
+3 -3
View File
@@ -44,7 +44,7 @@ do
end
function color_accessor(callback)
return function()
return aux.index_function({callback=callback, table=config.colors}, index_handler)
return index_function({callback=callback, table=config.colors}, index_handler)
end
end
end
@@ -336,7 +336,7 @@ do
function mt.__index:select(id)
self._selected = id
self:update()
aux.call(self._on_select, id)
call(self._on_select, id)
end
function mt.__index:update()
for _, tab in self._tabs do
@@ -389,7 +389,7 @@ function public.editbox(parent)
end)
editbox:SetScript('OnTextChanged', function()
this.last_change = GetTime()
this.text:SetText(aux.call(this.formatter, this:GetText()) or this:GetText())
this.text:SetText(call(this.formatter, this:GetText()) or this:GetText())
this.cursor:SetPoint('LEFT', this.text, 'LEFT', max(0, this.text:GetStringWidth() - 2), 1)
end)
do