| OLD | NEW |
| 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 Loading... |
| 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 }); |
| OLD | NEW |