Left: | ||
Right: |
LEFT | RIGHT |
---|---|
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 })(); |
LEFT | RIGHT |