Quantcast

-TOC Update for patch 4.1

Xruptor [05-03-11 - 11:54]
-TOC Update for patch 4.1
-Updated LibItemSearch-1.0 to address an issue with BOA (thanks Tuller!)
Filename
BagSync.toc
libs/LibItemSearch-1.0.lua
diff --git a/BagSync.toc b/BagSync.toc
index 4b14673..43a00be 100644
--- a/BagSync.toc
+++ b/BagSync.toc
@@ -1,8 +1,8 @@
-## Interface: 40000
+## Interface: 40100
 ## Title: BagSync
 ## Notes: BagSync tracks your characters items and displays it within tooltips.
 ## Author: Xruptor
-## Version: 6.0
+## Version: 6.1
 ## SavedVariables: BagSyncDB, BagSyncOpt, BagSyncGUILD_DB, BagSyncTOKEN_DB

 localization\localization.lua
diff --git a/libs/LibItemSearch-1.0.lua b/libs/LibItemSearch-1.0.lua
index 85cce6f..e7f52a6 100644
--- a/libs/LibItemSearch-1.0.lua
+++ b/libs/LibItemSearch-1.0.lua
@@ -18,7 +18,7 @@
 	I kindof half want to make a full parser for this
 --]]

-local MAJOR, MINOR = "LibItemSearch-1.0", 3
+local MAJOR, MINOR = "LibItemSearch-1.0", 2
 local ItemSearch = LibStub:NewLibrary(MAJOR, MINOR)
 if not ItemSearch then return end

@@ -317,33 +317,6 @@ ItemSearch:RegisterTypedSearch{
 	}
 }

-ItemSearch:RegisterTypedSearch{
-	id = 'tooltipDesc',
-
-	isSearch = function(self, search)
-		return search and search:match('^tt:(.+)$')
-	end,
-
-	findItem = function(self, itemLink, search)
-		--no match?, pull in the resut from tooltip parsing
-		tooltipScanner:SetOwner(UIParent, 'ANCHOR_NONE')
-		tooltipScanner:SetHyperlink(itemLink)
-
-		local i = 1
-		while i <= tooltipScanner:NumLines() do
-			local text =  _G[tooltipScanner:GetName() .. 'TextLeft' .. i]:GetText():lower()
-			if text and text:match(search) then
-				tooltipScanner:Hide()
-				return true
-			end
-			i = i + 1
-		end
-
-		tooltipScanner:Hide()
-		return false
-	end,
-}
-

 --[[ equipment set search ]]--