<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,58 +1,14 @@
 
-local ShoppingTooltip1, ShoppingTooltip2, ShoppingTooltip3 = ShoppingTooltip1, ShoppingTooltip2, ShoppingTooltip3
-local ItemRefShoppingTooltip1, ItemRefShoppingTooltip2, ItemRefShoppingTooltip3 = ItemRefShoppingTooltip1, ItemRefShoppingTooltip2, ItemRefShoppingTooltip3
-
-
-local function SetTips(link, owner, tooltip1, tooltip2, tooltip3)
-	--bypass these frames: WorldFrame, player's paperdoll, weapon enchants
-	local f = GetMouseFocus() and GetMouseFocus():GetName() or &quot;&quot;
-	if not link or f == &quot;WorldFrame&quot; or string.find(f, &quot;^Character.*Slot$&quot;) or string.find(f, &quot;^TempEnchant%d+$&quot;) then return end
-
-	tooltip1:SetOwner(owner, &quot;ANCHOR_NONE&quot;)
-	tooltip2:SetOwner(owner, &quot;ANCHOR_NONE&quot;)
-	tooltip3:SetOwner(owner, &quot;ANCHOR_NONE&quot;)
-	local item1, item2, item3 = tooltip1:SetHyperlinkCompareItem(link, 1), tooltip2:SetHyperlinkCompareItem(link, 2), tooltip3:SetHyperlinkCompareItem(link, 3)
-	if not item1 and not item2 and not item3 then return end
-	if item3 and not item2 then tooltip2, tooltip3, item2, item3 = tooltip3, tooltip2, true, nil end
-	if item2 and not item1 then tooltip1, tooltip2, item1, item2 = tooltip2, tooltip1, true, nil end
-
-	local left, right, anchor1, anchor2 = owner:GetLeft(), owner:GetRight(), &quot;TOPLEFT&quot;, &quot;TOPRIGHT&quot;
-	if not left or not right then return end
-	if (GetScreenWidth() - right) &lt; left then anchor1, anchor2 = anchor2, anchor1 end
-
-	if item1 then
-		tooltip1:ClearAllPoints()
-		tooltip1:SetPoint(anchor1, owner, anchor2, 0, -10)
-		tooltip1:Show()
-
-		if item2 then
-			tooltip2:ClearAllPoints()
-			tooltip2:SetPoint(anchor1, tooltip1, anchor2)
-			tooltip2:Show()
-
-			if item3 then
-				tooltip3:ClearAllPoints()
-				tooltip3:SetPoint(anchor1, tooltip2, anchor2)
-				tooltip3:Show()
-			end
-		end
-	end
-end
-
-
 local orig1 = GameTooltip:GetScript(&quot;OnTooltipSetItem&quot;)
-GameTooltip:SetScript(&quot;OnTooltipSetItem&quot;, function(frame, ...)
-	assert(frame, &quot;arg 1 is nil, someone isn't hooking correctly&quot;)
-
-	local _, link = frame:GetItem()
-	if not ShoppingTooltip1:IsVisible() then SetTips(link, frame, ShoppingTooltip1, ShoppingTooltip2, ShoppingTooltip3) end
-	if orig1 then return orig1(frame, ...) end
+GameTooltip:SetScript(&quot;OnTooltipSetItem&quot;, function(self, ...)
+	if not ShoppingTooltip1:IsVisible() and not self:IsEquippedItem() then GameTooltip_ShowCompareItem(self, 1) end
+	if orig1 then return orig1(self, ...) end
 end)
 
 
 local orig2 = ItemRefTooltip:GetScript(&quot;OnTooltipSetItem&quot;)
-ItemRefTooltip:SetScript(&quot;OnTooltipSetItem&quot;, function(frame, ...)
-&#733;	local _, link = frame:GetItem()
-	SetTips(link, frame, ItemRefShoppingTooltip1, ItemRefShoppingTooltip2, ItemRefShoppingTooltip3)
-	if orig2 then return orig2(frame, ...) end
+ItemRefTooltip:SetScript(&quot;OnTooltipSetItem&quot;, function(self, ...)
+	GameTooltip_ShowCompareItem(self, 1)
+	self.comparing = true
+	if orig2 then return orig2(self, ...) end
 end)</diff>
      <filename>tekKompare.lua</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7c30b7aa23c7a4804bfd81607477f68245bff7f9</id>
    </parent>
    <parent>
      <id>f97c762db2da03a743989ea83941b8bf829c51dc</id>
    </parent>
  </parents>
  <author>
    <name>tekkub</name>
    <email>tekkub@gmail.com</email>
  </author>
  <url>http://github.com/tekkub/tekkompare/commit/6b9e3a844681ce11410f53e273427299e5ede595</url>
  <id>6b9e3a844681ce11410f53e273427299e5ede595</id>
  <committed-date>2009-09-20T23:42:31-07:00</committed-date>
  <authored-date>2009-09-20T23:42:31-07:00</authored-date>
  <message>Merge commit 'origin/simpler'

Conflicts:
	tekKompare.lua</message>
  <tree>d65918ef7b04120019da23c70c76075ff4e476f4</tree>
  <committer>
    <name>tekkub</name>
    <email>tekkub@gmail.com</email>
  </committer>
</commit>
