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

Delta Between Two Patch Sets: html/static/js/ieFirstRun.js

Issue 4859491858251776: Fix the approach used in ieFirstRun.js (Closed)
Left Patch Set: Use polyfill for addEventListener Created July 2, 2014, 8:40 a.m.
Right Patch Set: Formatting nit addressed Created July 16, 2014, 11:19 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « html/static/js/ieEventListenerPolyfill.js ('k') | html/templates/firstRun.html » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 var AdblockPlus = (function() 1 var AdblockPlus = (function()
2 { 2 {
3 var scopes = { 3 var scopes =
4 prefs: { 4 {
Felix Dahlke 2014/07/04 13:40:32 Opening braces of multi-line object literals shoul
5 Prefs: { documentation_link: "" } 5 prefs:
Felix Dahlke 2014/07/04 13:40:32 No space after "{" or before "}" for object litera
6 {
7 Prefs: {documentation_link: ""}
6 }, 8 },
7 utils: { 9 utils:
8 Utils: { appLocale: "" } 10 {
Felix Dahlke 2014/07/04 13:40:32 Indentation should be 2 spaces per level.
11 Utils: {appLocale: ""}
9 }, 12 },
10 filterClasses: { 13 filterClasses:
11 Filter: { 14 {
12 fromText: { 15 Filter:
13 matches: function(param) { return true } 16 {
14 } 17 fromText:
18 {
19 matches: function(param) {return true}
15 } 20 }
16 } 21 }
17 }; 22 }
23 };
18 24
19 var result = { 25 var result =
20 require: function(module) { 26 {
27 require: function(module)
28 {
21 return scopes[module]; 29 return scopes[module];
22 } 30 }
23 }; 31 };
24 32
25 window.addEventListener("load", function() 33 window.addEventListener("load", function()
26 { 34 {
27 result.getMessage = function(section, param) { 35 result.getMessage = function(section, param)
28 return Settings.GetMessage(section, param); 36 {
Felix Dahlke 2014/07/04 13:40:32 Indentation is off here.
29 } 37 return Settings.GetMessage(section, param);
Felix Dahlke 2014/07/04 13:40:32 Is that trailing whitespace?
38 }
30 scopes.prefs.Prefs.documentation_link = Settings.GetDocumentationLink(); 39 scopes.prefs.Prefs.documentation_link = Settings.GetDocumentationLink();
31 scopes.utils.Utils.appLocale = Settings.GetAppLocale(); 40 scopes.utils.Utils.appLocale = Settings.GetAppLocale();
32 }, false); 41 }, false);
33 42
34 return result; 43 return result;
35 })(); 44 })();
LEFTRIGHT

Powered by Google App Engine
This is Rietveld