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

Side by Side Diff: chrome/browser/resources/settings/site_settings/edit_exception_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, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 'settings-edit-exception-dialog' is a component for editing a 6 * @fileoverview 'settings-edit-exception-dialog' is a component for editing a
7 * site exception entry. 7 * site exception entry.
8 */ 8 */
9 Polymer({ 9 Polymer({
10 is: 'settings-edit-exception-dialog', 10 is: 'settings-edit-exception-dialog',
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 this.$.dialog.close(); 61 this.$.dialog.close();
62 }, 62 },
63 63
64 /** @private */ 64 /** @private */
65 validate_: function() { 65 validate_: function() {
66 if (this.$$('paper-input').value.trim() == '') { 66 if (this.$$('paper-input').value.trim() == '') {
67 this.invalid_ = true; 67 this.invalid_ = true;
68 return; 68 return;
69 } 69 }
70 70
71 this.browserProxy_.isPatternValid(this.origin_).then(function(isValid) { 71 this.browserProxy_.isPatternValid(this.origin_).then(isValid => {
72 this.invalid_ = !isValid; 72 this.invalid_ = !isValid;
73 }.bind(this)); 73 });
74 }, 74 },
75 }); 75 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698