From cc1c0f9fc9988d9c1f93a3648765e72e5ef08514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tekkub=20=CA=95=20=C2=B4=E1=B4=A5=60=20=CA=94?= Date: Sun, 11 Sep 2016 04:10:05 -0600 Subject: [PATCH] Un-LibStub itemsearch --- GnomishVendorShrinker.lua | 4 +++- LibItemSearch-1.0.lua | 12 ++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/GnomishVendorShrinker.lua b/GnomishVendorShrinker.lua index a56583b..63ab768 100644 --- a/GnomishVendorShrinker.lua +++ b/GnomishVendorShrinker.lua @@ -2,7 +2,9 @@ local myname, ns = ... -local ItemSearch = LibStub('LibItemSearch-1.0') +local ItemSearch = ns.LibItemSearch +ns.LibItemSearch = nil + local NUMROWS, SCROLLSTEP = 14, 5 diff --git a/LibItemSearch-1.0.lua b/LibItemSearch-1.0.lua index 85cce6f..d611df3 100644 --- a/LibItemSearch-1.0.lua +++ b/LibItemSearch-1.0.lua @@ -18,9 +18,13 @@ I kindof half want to make a full parser for this --]] -local MAJOR, MINOR = "LibItemSearch-1.0", 3 -local ItemSearch = LibStub:NewLibrary(MAJOR, MINOR) -if not ItemSearch then return end +-- local MAJOR, MINOR = "LibItemSearch-1.0", 3 +-- local ItemSearch = LibStub:NewLibrary(MAJOR, MINOR) +-- if not ItemSearch then return end + +local myname, ns = ... +ns.LibItemSearch = {} +local ItemSearch = ns.LibItemSearch --[[ general search ]]-- @@ -441,4 +445,4 @@ ItemSearch:RegisterTypedSearch{ return isItemInEquipmentSet(itemLink, setName) or isItemInWardrobeSet(itemLink, setName) end, -} \ No newline at end of file +}