www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 6fabce1d802bf76554c6d211509b6a3c8290c313
parent 066cae3dbbd757c363cb48857c95650d37c839ac
Author: Simon Kornblith <simon@simonster.com>
Date:   Thu, 14 Jul 2011 15:01:51 +0000

Remove unused code


Diffstat:
Mchrome/content/zotero/browser.js | 64----------------------------------------------------------------
1 file changed, 0 insertions(+), 64 deletions(-)

diff --git a/chrome/content/zotero/browser.js b/chrome/content/zotero/browser.js @@ -58,7 +58,6 @@ var Zotero_Browser = new function() { this.statusImage = null; this.isScraping = false; - var _scrapePopupShowing = false; var _browserData = new Object(); var _blacklist = [ @@ -218,54 +217,6 @@ var Zotero_Browser = new function() { } /* - * called to hide the collection selection popup - */ - function hidePopup(collectionID) { - _scrapePopupShowing = false; - } - - /* - * called to show the collection selection popup - * - * not currently used - */ - function showPopup(collectionID, parentElement) { - if(_scrapePopupShowing && parentElement.hasChildNodes()) { - return false; // Don't dynamically reload popups that are already showing - } - _scrapePopupShowing = true; - parentElement.removeAllItems(); - - if(collectionID == null) { // show library - var newItem = document.createElement("menuitem"); - newItem.setAttribute("label", Zotero.getString("pane.collections.library")); - newItem.setAttribute("class", "menuitem-iconic zotero-scrape-popup-library"); - newItem.setAttribute("oncommand", 'Zotero_Browser.scrapeThisPage()'); - parentElement.appendChild(newItem); - } - - var childrenList = Zotero.getCollections(collectionID); - for(var i = 0; i < childrenList.length; i++) { - if(childrenList[i].hasChildCollections()) { - var newItem = document.createElement("menu"); - var subMenu = document.createElement("menupopup"); - subMenu.setAttribute("onpopupshowing", 'Zotero_Browser.showPopup("'+childrenList[i].getID()+'", this)'); - newItem.setAttribute("class", "menu-iconic zotero-scrape-popup-collection"); - newItem.appendChild(subMenu); - } else { - var newItem = document.createElement("menuitem"); - newItem.setAttribute("class", "menuitem-iconic zotero-scrape-popup-collection"); - } - newItem.setAttribute("label", childrenList[i].getName()); - newItem.setAttribute("oncommand", 'Zotero_Browser.scrapeThisPage("'+childrenList[i].getID()+'")'); - - parentElement.appendChild(newItem); - } - - return true; - } - - /* * When chrome loads, register our event handlers with the appropriate interfaces */ function chromeLoad() { @@ -556,21 +507,6 @@ var Zotero_Browser = new function() { } /* - * Deletes the document object associated with a given browser window object - */ - function _deleteTabObject(browser) { - if(!browser) return false; - try { - var key = browser.getAttribute("zotero-key"); - if(_browserData[key]) { - delete _browserData[key]; - return true; - } - } finally {} - return false; - } - - /* * adds an annotation */ function _add(type, e) {