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

Unified Diff: chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.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/printing_page/cups_add_printer_dialog.js
diff --git a/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js b/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js
index 128f0ff58cb2b8323748c8307db901641f9cd468..f4439b4d3b08c7cfac466108071129b5fda31d46 100644
--- a/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js
+++ b/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js
@@ -559,9 +559,9 @@ Polymer({
this.set(domIfBooleanName, true);
this.async(function() {
var dialog = this.$$(toDialog);
- dialog.addEventListener('close', function() {
+ dialog.addEventListener('close', () => {
this.set(domIfBooleanName, false);
- }.bind(this));
+ });
});
},
« no previous file with comments | « chrome/browser/resources/settings/prefs/prefs.js ('k') | chrome/browser/resources/settings/reset_page/reset_profile_dialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698