Fix handling of overrides and remove debug code

Addresses #202
This commit is contained in:
Simon Kornblith 2012-11-25 16:19:11 -05:00
parent b1a70bff3d
commit 428ddbab36

View file

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