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

Unified Diff: chrome/browser/resources/settings/languages_page/edit_dictionary_page.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/languages_page/edit_dictionary_page.js
diff --git a/chrome/browser/resources/settings/languages_page/edit_dictionary_page.js b/chrome/browser/resources/settings/languages_page/edit_dictionary_page.js
index bfe73dbdeeb438b33f051b7962694221906209d8..4587d0322d60a65e2b0f4db81326ea8d34eeff1b 100644
--- a/chrome/browser/resources/settings/languages_page/edit_dictionary_page.js
+++ b/chrome/browser/resources/settings/languages_page/edit_dictionary_page.js
@@ -42,9 +42,9 @@ Polymer({
/** @type {!LanguageSettingsPrivate} */
(chrome.languageSettingsPrivate);
- this.languageSettingsPrivate.getSpellcheckWords(function(words) {
+ this.languageSettingsPrivate.getSpellcheckWords(words => {
this.words_ = words;
- }.bind(this));
+ });
this.languageSettingsPrivate.onCustomDictionaryChanged.addListener(
this.onCustomDictionaryChanged_.bind(this));

Powered by Google App Engine
This is Rietveld 408576698