www

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

commit 84486e24ac41e4df246ab718734e08e03d436985
parent 1e90528937f1ed73563f127a0776d3d060922d10
Author: Simon Kornblith <simon@simonster.com>
Date:   Thu, 25 Aug 2011 21:29:35 +0000

Don't add extra menu separator in Standalone


Diffstat:
Mchrome/content/zotero/standalone/standalone.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/standalone/standalone.js b/chrome/content/zotero/standalone/standalone.js @@ -82,8 +82,8 @@ const ZoteroStandalone = new function() { while(addMenu.hasChildNodes()) addMenu.removeChild(addMenu.firstChild); var typeSets = [Zotero.ItemTypes.getPrimaryTypes(), Zotero.ItemTypes.getSecondaryTypes()]; - for(var i in typeSets) { - var t = typeSets[i]; + for(var j=0; j<typeSets.length; j++) { + var t = typeSets[j]; // Sort by localized name var itemTypes = []; @@ -109,7 +109,7 @@ const ZoteroStandalone = new function() { } // add separator between sets - if(i !== typeSets.length-1) { + if(j !== typeSets.length-1) { addMenu.appendChild(document.createElement("menuseparator")); } }