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: Created Jan. 13, 2017, 12:11 p.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 let backgroundPage = ext.backgroundPage.getWindow(); 1 "use strict";
2 let require = backgroundPage.require;
3 2
4 let Services = backgroundPage.Services; 3 const {require, Services} = ext.backgroundPage.getWindow();
5 let Synchronizer = require("synchronizer").Synchronizer;
6 let Utils = require("utils").Utils;
7 let Prefs = require("prefs").Prefs;
8 let FilterStorage = require("filterStorage").FilterStorage;
9 let FilterNotifier = require("filterNotifier").FilterNotifier;
10 4
11 let subscriptionClasses = require("subscriptionClasses"); 5 const {Synchronizer} = require("synchronizer");
12 let Subscription = subscriptionClasses.Subscription; 6 const {Utils} = require("utils");
13 let DownloadableSubscription = subscriptionClasses.DownloadableSubscription; 7 const {Prefs} = require("prefs");
14 let filterClasses = require("filterClasses"); 8 const {FilterStorage} = require("filterStorage");
15 let Filter = filterClasses.Filter; 9 const {FilterNotifier} = require("filterNotifier");
16 let BlockingFilter = filterClasses.BlockingFilter; 10
17 let defaultMatcher = require("matcher").defaultMatcher; 11 const {Subscription, DownloadableSubscription} = require("subscriptionClasses");
12 const {Filter, BlockingFilter} = require("filterClasses");
13 const {defaultMatcher} = require("matcher");
18 14
19 /** 15 /**
20 * Shortcut for document.getElementById(id) 16 * Shortcut for document.getElementById(id)
21 */ 17 */
22 function E(id) 18 function E(id)
23 { 19 {
24 return document.getElementById(id); 20 return document.getElementById(id);
25 } 21 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld