| OLD | NEW |
| 1 var AdblockPlus = { | 1 var AdblockPlus = { |
| 2 require: function(param) | 2 require: function(param) |
| 3 { | 3 { |
| 4 if (param == "prefs") | 4 if (param == "prefs") |
| 5 { | 5 { |
| 6 return { | 6 return { |
| 7 Prefs: | 7 Prefs: |
| 8 { | 8 { |
| 9 documentation_link: "" | 9 documentation_link: "" |
| 10 } | 10 } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 } | 36 } |
| 37 } | 37 } |
| 38 return {}; | 38 return {}; |
| 39 } | 39 } |
| 40 } | 40 } |
| 41 | 41 |
| 42 function initWrappers() | 42 function initWrappers() |
| 43 { | 43 { |
| 44 AdblockPlus.getMessage = function(section, param) | 44 AdblockPlus.getMessage = function(section, param) |
| 45 { | 45 { |
| 46 » » return Settings.GetMessage(section, param); | 46 » » return window.Settings.GetMessage(section, param); |
| 47 } | 47 } |
| 48 » Prefs.documentation_link = Settings.GetDocumentationLink(); | 48 » Prefs.documentation_link = window.Settings.GetDocumentationLink(); |
| 49 » Utils.appLocale = Settings.GetAppLocale(); | 49 » Utils.appLocale = window.Settings.GetAppLocale(); |
| 50 } | 50 } |
| 51 | |
| 52 window.addEventListener("load", initWrappers, false); | |
| OLD | NEW |