Un-LibStub itemsearch
This commit is contained in:
parent
e85695c348
commit
cc1c0f9fc9
|
@ -2,7 +2,9 @@
|
||||||
local myname, ns = ...
|
local myname, ns = ...
|
||||||
|
|
||||||
|
|
||||||
local ItemSearch = LibStub('LibItemSearch-1.0')
|
local ItemSearch = ns.LibItemSearch
|
||||||
|
ns.LibItemSearch = nil
|
||||||
|
|
||||||
|
|
||||||
local NUMROWS, SCROLLSTEP = 14, 5
|
local NUMROWS, SCROLLSTEP = 14, 5
|
||||||
|
|
||||||
|
|
|
@ -18,9 +18,13 @@
|
||||||
I kindof half want to make a full parser for this
|
I kindof half want to make a full parser for this
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
local MAJOR, MINOR = "LibItemSearch-1.0", 3
|
-- local MAJOR, MINOR = "LibItemSearch-1.0", 3
|
||||||
local ItemSearch = LibStub:NewLibrary(MAJOR, MINOR)
|
-- local ItemSearch = LibStub:NewLibrary(MAJOR, MINOR)
|
||||||
if not ItemSearch then return end
|
-- if not ItemSearch then return end
|
||||||
|
|
||||||
|
local myname, ns = ...
|
||||||
|
ns.LibItemSearch = {}
|
||||||
|
local ItemSearch = ns.LibItemSearch
|
||||||
|
|
||||||
--[[ general search ]]--
|
--[[ general search ]]--
|
||||||
|
|
||||||
|
@ -441,4 +445,4 @@ ItemSearch:RegisterTypedSearch{
|
||||||
return isItemInEquipmentSet(itemLink, setName)
|
return isItemInEquipmentSet(itemLink, setName)
|
||||||
or isItemInWardrobeSet(itemLink, setName)
|
or isItemInWardrobeSet(itemLink, setName)
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue