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

Unified Diff: utils.js

Issue 29371763: Issue 4795 - Use modern JavaScript syntax (Closed)
Patch Set: Use method shorthand Created Jan. 16, 2017, 4:07 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « subscriptionLink.postload.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils.js
diff --git a/utils.js b/utils.js
index 64b7274494c869713ebf1b051036859f5677823f..497566a844b975cddcae78643a0955b3e37304ff 100644
--- a/utils.js
+++ b/utils.js
@@ -1,20 +1,22 @@
-var backgroundPage = ext.backgroundPage.getWindow();
-var require = backgroundPage.require;
+"use strict";
-var Services = backgroundPage.Services;
-var Synchronizer = require("synchronizer").Synchronizer;
-var Utils = require("utils").Utils;
-var Prefs = require("prefs").Prefs;
-var FilterStorage = require("filterStorage").FilterStorage;
-var FilterNotifier = require("filterNotifier").FilterNotifier;
+let backgroundPage = ext.backgroundPage.getWindow();
+let require = backgroundPage.require;
-var subscriptionClasses = require("subscriptionClasses");
-var Subscription = subscriptionClasses.Subscription;
-var DownloadableSubscription = subscriptionClasses.DownloadableSubscription;
-var filterClasses = require("filterClasses");
-var Filter = filterClasses.Filter;
-var BlockingFilter = filterClasses.BlockingFilter;
-var defaultMatcher = require("matcher").defaultMatcher;
+let Services = backgroundPage.Services;
+let Synchronizer = require("synchronizer").Synchronizer;
+let Utils = require("utils").Utils;
+let Prefs = require("prefs").Prefs;
+let FilterStorage = require("filterStorage").FilterStorage;
+let FilterNotifier = require("filterNotifier").FilterNotifier;
+
+let subscriptionClasses = require("subscriptionClasses");
+let Subscription = subscriptionClasses.Subscription;
+let DownloadableSubscription = subscriptionClasses.DownloadableSubscription;
+let filterClasses = require("filterClasses");
+let Filter = filterClasses.Filter;
+let BlockingFilter = filterClasses.BlockingFilter;
+let defaultMatcher = require("matcher").defaultMatcher;
/**
* Shortcut for document.getElementById(id)
« 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