commit 5ca5b06ebc338523b445919a07f6ac278ea2f548 parent cab868482cafd1fee242519884d7c412c6c7a698 Author: Simon Kornblith <simon@simonster.com> Date: Mon, 16 Apr 2012 00:29:23 -0400 Don't try to double-wrap objects Diffstat:
| M | chrome/content/zotero/xpcom/translation/translate_firefox.js | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/translation/translate_firefox.js b/chrome/content/zotero/xpcom/translation/translate_firefox.js @@ -322,7 +322,10 @@ Zotero.Translate.DOMWrapper = new function() { * @param {XPCCrossOriginWrapper} obj * @return {Object} An obj that is no longer Xrayed */ - this.wrap = wrapPrivileged; + this.wrap = function(obj, overrides) { + if(isWrapper(obj)) return obj; + return wrapPrivileged(obj, overrides); + }; /** * Unwraps an object