Files
libdogtag-3-0/Cleanup.lua
ckknight 4af35669d9 - remove a lot of unneeded localization data.
- make the library creation process a bit simpler
2008-03-14 01:02:58 +00:00

27 lines
529 B
Lua

local MAJOR_VERSION = "LibDogTag-3.0"
local MINOR_VERSION = tonumber(("$Revision$"):match("%d+")) or 0
if MINOR_VERSION > _G.DogTag_MINOR_VERSION then
_G.DogTag_MINOR_VERSION = MINOR_VERSION
end
local DogTag, oldMinor = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION)
if not DogTag then
return
end
local oldLib
if next(DogTag) ~= nil then
oldLib = {}
for k,v in pairs(DogTag) do
oldLib[k] = v
DogTag[k] = nil
end
end
DogTag.oldLib = oldLib
for _,v in ipairs(_G.DogTag_funcs) do
v(DogTag)
end
_G.DogTag_funcs = nil