Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2729)

Unified Diff: chrome/browser/resources/settings/animation/animation.js

Issue 2984843003: MD Settings: Convert all usages of .bind(this) to use ES6 arrow function. (Closed)
Patch Set: Resolve conflicts. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/animation/animation.js
diff --git a/chrome/browser/resources/settings/animation/animation.js b/chrome/browser/resources/settings/animation/animation.js
index 8f369ce9865781b19142653ac60cf7a3d65cd816..bd8c2a74da96d05d066528b1894bc8c1edb8570c 100644
--- a/chrome/browser/resources/settings/animation/animation.js
+++ b/chrome/browser/resources/settings/animation/animation.js
@@ -80,10 +80,10 @@ cr.define('settings.animation', function() {
* @private
*/
queueDispatch_: function(e) {
- setTimeout(function() {
+ setTimeout(() => {
this.dispatchEvent(e);
this.animation_ = undefined;
- }.bind(this));
+ });
},
};

Powered by Google App Engine
This is Rietveld 408576698