WoWInterface SVN PhanxConfigWidgets

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/PhanxConfig-EditBox
    from Rev 172 to Rev 176
    Reverse comparison

Rev 172 → Rev 176

PhanxConfig-EditBox.lua
61,8 → 61,9
if text:len() == 0 then text = nil end -- experimental
 
local parent = self:GetParent()
if parent.CallbackOnTextChanged and text ~= self.currText then
parent:CallbackOnTextChanged(text)
local callback = parent.CallbackOnTextChanged or parent.OnTextChanged
if callback and text ~= self.currText then
callback(parent, text)
self.currText = text
end
end
73,8 → 74,9
self:ClearFocus()
 
local parent = self:GetParent()
if parent.Callback then
parent:Callback(text)
local callback = parent.Callback or parent.OnValueChanged
if callback then
callback(parent, text)
end
end