comparison LibFarmbuyer.lua @ 122:fb4bda3ad05c

Various trivial cleanups.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Fri, 17 Aug 2012 01:04:38 -0400
parents a57133ee3c9b
children
comparison
equal deleted inserted replaced
121:4dd67f8116f4 122:fb4bda3ad05c
53 53
54 - new(...), del(t), copy(t), clear() 54 - new(...), del(t), copy(t), clear()
55 Ditto for table recycling. 55 Ditto for table recycling.
56 ]] 56 ]]
57 57
58 local MAJOR, MINOR = "LibFarmbuyer", 19 58 local MAJOR, MINOR = "LibFarmbuyer", 20
59 assert(LibStub,MAJOR.." requires LibStub") 59 assert(LibStub,MAJOR.." requires LibStub")
60 local lib = LibStub:NewLibrary(MAJOR, MINOR) 60 local lib = LibStub:NewLibrary(MAJOR, MINOR)
61 if not lib then return end 61 if not lib then return end
62 62
63 _G[MAJOR] = lib 63 _G[MAJOR] = lib
182 return info.farm_OnShow (dialog, data) 182 return info.farm_OnShow (dialog, data)
183 end 183 end
184 end 184 end
185 local function OnAccept_witheditbox (dialog, data, data2) 185 local function OnAccept_witheditbox (dialog, data, data2)
186 local info = StaticPopupDialogs[dialog.which] 186 local info = StaticPopupDialogs[dialog.which]
187 --dialog.usertext = dialog[info.hasWideEditBox and "wideEditBox" or "editBox"]:GetText():trim()
188 dialog.usertext = dialog.editBox:GetText():trim() 187 dialog.usertext = dialog.editBox:GetText():trim()
189 if info.farm_OnAccept then 188 if info.farm_OnAccept then
190 return info.farm_OnAccept (dialog, data, data2) 189 return info.farm_OnAccept (dialog, data, data2)
191 end 190 end
192 end 191 end