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

Unified Diff: chrome/content/common.js

Issue 29332858: Issue 3430 - Get rid of expression closure in EHH`s common.js (Closed)
Patch Set: Created Dec. 17, 2015, 2:39 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/common.js
===================================================================
--- a/chrome/content/common.js
+++ b/chrome/content/common.js
@@ -14,9 +14,12 @@ Cu.import("resource://gre/modules/Servic
function require(module)
{
let result = {};
result.wrappedJSObject = result;
Services.obs.notifyObservers(result, "elemhidehelper-require", module);
return result.exports;
}
-function E(id) document.getElementById(id);
+function E(id)
+{
+ return document.getElementById(id);
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld