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

Side by Side Diff: utils.js

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

Powered by Google App Engine
This is Rietveld