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

Side by Side Diff: lib/main.js

Issue 6061584040329216: Issue 2544 - Fix documentation generation for Diagnostics (Closed)
Patch Set: Updated compatibility info Created May 18, 2015, 7:42 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | metadata.gecko » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This Source Code is subject to the terms of the Mozilla Public License 2 * This Source Code is subject to the terms of the Mozilla Public License
3 * version 2.0 (the "License"). You can obtain a copy of the License at 3 * version 2.0 (the "License"). You can obtain a copy of the License at
4 * http://mozilla.org/MPL/2.0/. 4 * http://mozilla.org/MPL/2.0/.
5 */ 5 */
6 6
7 Cu.import("resource://gre/modules/Services.jsm"); 7 Cu.import("resource://gre/modules/Services.jsm");
8 8
9 let {Prefs} = require("prefs"); 9 let {Prefs} = require("prefs");
10 let {WindowObserver} = require("windowObserver"); 10 let {WindowObserver} = require("windowObserver");
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 window.removeEventListener("keypress", keyPressHandler, false); 45 window.removeEventListener("keypress", keyPressHandler, false);
46 } 46 }
47 }); 47 });
48 48
49 function getMenuItem() 49 function getMenuItem()
50 { 50 {
51 // Randomize URI to work around bug 719376 51 // Randomize URI to work around bug 719376
52 let stringBundle = Services.strings.createBundle("chrome://abpwatcher/locale/g lobal.properties?" + Math.random()); 52 let stringBundle = Services.strings.createBundle("chrome://abpwatcher/locale/g lobal.properties?" + Math.random());
53 let result = [stringBundle.GetStringFromName("startwatching.label"), stringBun dle.GetStringFromName("startwatching.accesskey")]; 53 let result = [stringBundle.GetStringFromName("startwatching.label"), stringBun dle.GetStringFromName("startwatching.accesskey")];
54 54
55 getMenuItem = function() result; 55 getMenuItem = () => result;
56 return getMenuItem(); 56 return getMenuItem();
57 } 57 }
58 58
59 function popupShowingHandler(event) 59 function popupShowingHandler(event)
60 { 60 {
61 let popup = event.originalTarget; 61 let popup = event.originalTarget;
62 if (!/^(abp-(?:toolbar|status|menuitem)-)popup$/.test(popup.id)) 62 if (!/^(abp-(?:toolbar|status|menuitem)-)popup$/.test(popup.id))
63 return; 63 return;
64 64
65 popupHiddenHandler(event); 65 popupHiddenHandler(event);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 { 115 {
116 event.preventDefault(); 116 event.preventDefault();
117 popupCommandHandler(event); 117 popupCommandHandler(event);
118 } 118 }
119 } 119 }
120 120
121 function configureKey(window) 121 function configureKey(window)
122 { 122 {
123 key = new KeySelector(window).selectKey(Prefs.startwatching_key); 123 key = new KeySelector(window).selectKey(Prefs.startwatching_key);
124 } 124 }
OLDNEW
« no previous file with comments | « no previous file | metadata.gecko » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld