www

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

commit 428ddbab362fc458a282bc502189ff21fad26da7
parent b1a70bff3d7c5cf3c9ad67eb7aff88d7182a305a
Author: Simon Kornblith <simon@simonster.com>
Date:   Sun, 25 Nov 2012 16:19:11 -0500

Fix handling of overrides and remove debug code

Addresses #202

Diffstat:
Mchrome/content/zotero/xpcom/translation/translate_firefox.js | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate_firefox.js b/chrome/content/zotero/xpcom/translation/translate_firefox.js @@ -195,7 +195,7 @@ Zotero.Translate.DOMWrapper = new function() { var desc; // Hack for overriding some properties - if (name in this.overrides) + if (this.overrides.hasOwnProperty(name)) return this.overrides[name]; // Case 1: Own Properties. // @@ -270,12 +270,10 @@ Zotero.Translate.DOMWrapper = new function() { }; SpecialPowersHandler.prototype.getOwnPropertyDescriptor = function(name) { - Zotero.debug("Getting own property desc "+name); return this.doGetPropertyDescriptor(name, true); }; SpecialPowersHandler.prototype.getPropertyDescriptor = function(name) { - Zotero.debug("Getting property desc "+name); return this.doGetPropertyDescriptor(name, false); };