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

Side by Side Diff: html/static/js/ieFirstRun.js

Issue 11276031: FRP wrappers. "Update" menu item. (Closed)
Patch Set: Created Aug. 1, 2013, 2:29 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 var AdblockPlus = {
2 require: function(param)
3 {
4 if (param == "prefs")
5 {
6 return {
7 Prefs:
8 {
9 documentation_link: ""
10 }
11 }
12 }
13 if (param == "utils")
14 {
15 return {
16 Utils:
17 {
18 appLocale: ""
19 }
20 }
21 }
22 if (param == "filterClasses")
23 {
24 return {
25 Filter:
26 {
27 fromText: function(param)
28 {
29 return {
30 matches: function(param) {
31 return true;
32 }
33 }
34 }
35 }
36 }
37 }
38 return {};
39 }
40 }
41
42 function initWrappers()
43 {
44 AdblockPlus.getMessage = function(section, param)
45 {
46 return Settings.GetMessage(section, param);
47 }
48 Prefs.documentation_link = Settings.GetDocumentationLink();
49 Utils.appLocale = Settings.GetAppLocale();
Wladimir Palant 2013/08/13 09:19:51 This seems to assume that the result of require("p
50 }
51
52 window.addEventListener("load", initWrappers, false);
OLDNEW

Powered by Google App Engine
This is Rietveld