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

Unified Diff: lib/icon.js

Issue 29371763: Issue 4795 - Use modern JavaScript syntax (Closed)
Patch Set: Addressed some more feedback Created Jan. 18, 2017, 11:44 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 | « lib/filterValidation.js ('k') | lib/io.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/icon.js
diff --git a/lib/icon.js b/lib/icon.js
index a2e56a174a24d4c36fec0a658c108990bc92e8bb..c7590fce9c8f4bef26cbb7ab428a58b7ee97afed 100644
--- a/lib/icon.js
+++ b/lib/icon.js
@@ -19,7 +19,7 @@
"use strict";
-let {FilterNotifier} = require("filterNotifier");
+const {FilterNotifier} = require("filterNotifier");
const frameOpacities = [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
@@ -185,7 +185,7 @@ let stopIconAnimation =
* @return {Promise} A promise that is fullfilled when
* the icon animation has been stopped.
*/
-exports.stopIconAnimation = function()
+exports.stopIconAnimation = () =>
{
stopRequested = true;
return notRunning.then(() =>
@@ -201,7 +201,7 @@ exports.stopIconAnimation = function()
*
* @param {string} type The notification type (i.e: "information" or "critical")
*/
-exports.startIconAnimation = function(type)
+exports.startIconAnimation = type =>
{
notRunning = new Promise(resolve =>
{
« no previous file with comments | « lib/filterValidation.js ('k') | lib/io.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld