Make => New

This commit is contained in:
tekkub ʕ ´ᴥ` ʔ 2016-09-11 22:00:27 -06:00
parent a70f5a93a1
commit 84cbfd42da
2 changed files with 2 additions and 4 deletions

View File

@ -12,7 +12,7 @@ local NUMROWS = 14
function ns.NewMainFrame()
local GVS = CreateFrame("frame", nil, MerchantBuyBackItem)
local search = ns.MakeSearchField(GVS)
local search = ns.NewSearchField(GVS)
local rows = {}
for i=1,NUMROWS do

View File

@ -2,7 +2,7 @@
local myname, ns = ...
function ns.MakeSearchField(parent)
function ns.NewSearchField(parent)
local editbox = ns.NewTextInput(parent)
editbox:SetPoint("BOTTOMLEFT", parent, "TOPLEFT", 55, 9)
@ -26,7 +26,5 @@ function ns.MakeSearchField(parent)
editbox:SetScript("OnLeave", GameTooltip_Hide)
editbox:SetScript("OnShow", function(self) self:SetText("") end)
ns.MakeSearchField = nil
return editbox
end