From d02fe6d9ab87f6bb888c8f00ac433da414643222 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 4 Jul 2012 18:22:45 -0400 Subject: [PATCH] Include speed of Fx5DOMWrapper --- .../xpcom/translation/translate_firefox.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/chrome/content/zotero/xpcom/translation/translate_firefox.js b/chrome/content/zotero/xpcom/translation/translate_firefox.js index 442789d2b..d43e158ab 100644 --- a/chrome/content/zotero/xpcom/translation/translate_firefox.js +++ b/chrome/content/zotero/xpcom/translation/translate_firefox.js @@ -96,19 +96,19 @@ Zotero.Translate.SandboxManager.Fx5DOMWrapper = function(obj, parent) { return null; } - var type = typeof obj; - if(type === "function") { + if(typeof obj === "function") { var me = this; var val = function() { var nArgs = arguments.length; var args = new Array(nArgs); for(var i=0; i