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: Created Jan. 13, 2017, 12:11 p.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
Index: lib/icon.js
diff --git a/lib/icon.js b/lib/icon.js
index a2e56a174a24d4c36fec0a658c108990bc92e8bb..dee47efa321e3274443a0a285aebfe4b1723c67a 100644
--- a/lib/icon.js
+++ b/lib/icon.js
@@ -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 =>
{
« chrome/ext/common.js ('K') | « lib/filterValidation.js ('k') | lib/io.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld