refactoring, removed tooltip source

This commit is contained in:
Manuel Simon Hirsig
2017-03-05 02:48:29 +01:00
parent bf613cfa79
commit bf4078afae
16 changed files with 27 additions and 83 deletions
+1 -1
View File
@@ -315,7 +315,7 @@ function M.editbox(parent)
do (this.focus_loss or nop)() end
end)
editbox:SetScript('OnTextChanged', function()
this.overlay:SetText((this.formatter or id)(this:GetText()))
this.overlay:SetText(this.formatter and this.formatter(this:GetText()) or this:GetText())
do (this.change or nop)() end
end)
editbox:SetScript('OnChar', function() (this.char or nop)() end)