From f71122e78848847aa5822af78edab1cd8a2a048e Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 22 Jun 2011 07:52:06 +0000 Subject: [PATCH] add hack comments to utilities.js --- chrome/content/zotero/xpcom/utilities.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js index 9a4da25141..76e21a9c9d 100644 --- a/chrome/content/zotero/xpcom/utilities.js +++ b/chrome/content/zotero/xpcom/utilities.js @@ -636,6 +636,7 @@ Zotero.Utilities = { var results = []; for(var i in elements) { var element = elements[i]; + // Firefox 5 hack if(element.__wrappedDOMObject) element = element.__wrappedDOMObject; if(element.ownerDocument) { @@ -659,6 +660,7 @@ Zotero.Utilities = { var newEl; while(newEl = xpathObject.iterateNext()) { + // Firefox 5 hack results.push(Zotero.isFx5 && !_dontWrap ? Zotero.Translate.SandboxManager.Fx5DOMWrapper(newEl) : newEl); } }