From 3985c2181338f6b93b16aeb5dde0a0fa37314ed3 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Sun, 23 Feb 2003 03:37:56 +0000 Subject: [PATCH] Bug 102896 alternates with duplicate URIs ignored on the link toolbar patch by choess@stwing.upenn.edu r=timeless sr=jag --- .../browser/resources/content/linkToolbarItem.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/xpfe/browser/resources/content/linkToolbarItem.js b/xpfe/browser/resources/content/linkToolbarItem.js index 4ba7578471e6..17c2a271b933 100644 --- a/xpfe/browser/resources/content/linkToolbarItem.js +++ b/xpfe/browser/resources/content/linkToolbarItem.js @@ -125,13 +125,10 @@ LinkToolbarButton.prototype = new LinkToolbarItem; function LinkToolbarMenu (linkType) { this.constructor(linkType); - this.knownLinks = null; - this.clear = function() { this.disableParentMenuButton(); this.getXULElement().setAttribute("disabled", "true"); clearPopup(this.getPopup()); - this.knownLinks = null; } function clearPopup(popup) { @@ -144,25 +141,12 @@ function LinkToolbarMenu (linkType) { } this.displayLink = function(linkElement) { - if (this.isAlreadyAdded(linkElement)) return false; - - this.getKnownLinks()[linkElement.href] = true; this.addMenuItem(linkElement); this.getXULElement().removeAttribute("disabled"); this.enableParentMenuButton(); return true; } - this.isAlreadyAdded = function(linkElement) { - return this.getKnownLinks()[linkElement.href]; - } - - this.getKnownLinks = function() { - if (!this.knownLinks) - this.knownLinks = new Array(); - return this.knownLinks; - } - function match(first, second) { if (!first && !second) return true; if (!first || !second) return false;