Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/inspectorObserver.js

Issue 6520005931827200: Issue 2259 - Removed non-standard JavaScript code from Element Hiding Helper (Closed)
Patch Set: Turned knownClasses into a Set as well Created April 4, 2015, 3:28 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/inspectorObserver.js
===================================================================
--- a/lib/inspectorObserver.js
+++ b/lib/inspectorObserver.js
@@ -32,8 +32,7 @@
let stringBundle = Services.strings.createBundle("chrome://elemhidehelper/locale/global.properties?" + Math.random());
let result = stringBundle.GetStringFromName("inspector.button.tooltiptext");
- delete this.inspectorButtonTooltip;
- this.__defineGetter__("inspectorButtonTooltip", function() result);
+ Object.defineProperty(this, "inspectorButtonTooltip", {value: result, enumerable: true});
return this.inspectorButtonTooltip;
},
« chrome/content/composer.js ('K') | « lib/aardvark.js ('k') | lib/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld