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

Unified Diff: lib/windowWrapper.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
« chrome/content/composer.js ('K') | « lib/main.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/windowWrapper.js
===================================================================
--- a/lib/windowWrapper.js
+++ b/lib/windowWrapper.js
@@ -16,7 +16,7 @@
let stringBundle = Services.strings.createBundle("chrome://elemhidehelper/locale/global.properties?" + Math.random());
let result = [stringBundle.GetStringFromName("selectelement.label"), stringBundle.GetStringFromName("stopselection.label")];
- getMenuItem = function() result;
+ getMenuItem = () => result;
return getMenuItem();
}
@@ -68,7 +68,7 @@
E: function(id)
{
let doc = this.window.document;
- this.E = function(id) doc.getElementById(id);
+ this.E = id => doc.getElementById(id);
return this.E(id);
},
« chrome/content/composer.js ('K') | « lib/main.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld