Mercurial > wow > ouroloot
comparison LibFarmbuyer.lua @ 92:01cfbfa96dd6
Last bits of cleanup and testing.
| author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
|---|---|
| date | Tue, 17 Jul 2012 03:24:36 +0000 |
| parents | 32eb24fb2ebf |
| children | 3546c7b55986 |
comparison
equal
deleted
inserted
replaced
| 91:2ef80188a547 | 92:01cfbfa96dd6 |
|---|---|
| 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", 18 | 58 local MAJOR, MINOR = "LibFarmbuyer", 19 |
| 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 |
| 250 --_G.UIParentLoadAddOn("Blizzard_DebugTools") | 250 --_G.UIParentLoadAddOn("Blizzard_DebugTools") |
| 251 _G.LibF_DEBUG = t | 251 _G.LibF_DEBUG = t |
| 252 _G.SlashCmdList.DUMP("LibF_DEBUG") | 252 _G.SlashCmdList.DUMP("LibF_DEBUG") |
| 253 end | 253 end |
| 254 else | 254 else |
| 255 -- make sure earlier lib's members aren't lingering | |
| 256 lib.author_debug = nil | |
| 257 _G.safeprint = nil | |
| 258 _G.safeiprint = nil | |
| 255 lib.tabledump = lib.nullfunc | 259 lib.tabledump = lib.nullfunc |
| 256 end | 260 end |
| 257 lib.dumptable = lib.tabledump | 261 lib.dumptable = lib.tabledump |
| 258 | 262 |
| 259 | 263 |
