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: 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 | « 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..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 =>
{
« 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