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

Delta Between Two Patch Sets: utils.js

Issue 29371763: Issue 4795 - Use modern JavaScript syntax (Closed)
Left Patch Set: Use const as per the new rules Created Jan. 18, 2017, 7:23 a.m.
Right Patch Set: Addressed some more feedback Created Jan. 18, 2017, 11:44 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 | « subscriptionLink.postload.js ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 "use strict"; 1 "use strict";
2 2
3 const backgroundPage = ext.backgroundPage.getWindow(); 3 const {require, Services} = ext.backgroundPage.getWindow();
4 const require = backgroundPage.require;
5 4
6 const Services = backgroundPage.Services;
7 const {Synchronizer} = require("synchronizer"); 5 const {Synchronizer} = require("synchronizer");
8 const {Utils} = require("utils"); 6 const {Utils} = require("utils");
9 const {Prefs} = require("prefs"); 7 const {Prefs} = require("prefs");
10 const {FilterStorage} = require("filterStorage"); 8 const {FilterStorage} = require("filterStorage");
11 const {FilterNotifier} = require("filterNotifier"); 9 const {FilterNotifier} = require("filterNotifier");
12 10
13 const {Subscription, DownloadableSubscription} = require("subscriptionClasses"); 11 const {Subscription, DownloadableSubscription} = require("subscriptionClasses");
14 const {Filter, BlockingFilter} = require("filterClasses"); 12 const {Filter, BlockingFilter} = require("filterClasses");
15 const {defaultMatcher} = require("matcher"); 13 const {defaultMatcher} = require("matcher");
16 14
17 /** 15 /**
18 * Shortcut for document.getElementById(id) 16 * Shortcut for document.getElementById(id)
19 */ 17 */
20 function E(id) 18 function E(id)
21 { 19 {
22 return document.getElementById(id); 20 return document.getElementById(id);
23 } 21 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld