OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 Polymer((function() { | 5 Polymer((function() { |
6 var INPUT_EMAIL_PATTERN = "^[a-zA-Z0-9.!#$%&'*+=?^_`{|}~-]+(@[^\\s@]+)?$"; | 6 var INPUT_EMAIL_PATTERN = "^[a-zA-Z0-9.!#$%&'*+=?^_`{|}~-]+(@[^\\s@]+)?$"; |
7 | 7 |
8 return { | 8 return { |
9 is: 'gaia-input', | 9 is: 'gaia-input', |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 this.$.input.pattern = INPUT_EMAIL_PATTERN; | 67 this.$.input.pattern = INPUT_EMAIL_PATTERN; |
68 this.$.input.type = 'text'; | 68 this.$.input.type = 'text'; |
69 } else { | 69 } else { |
70 this.$.input.removeAttribute('pattern'); | 70 this.$.input.removeAttribute('pattern'); |
71 this.$.input.type = this.type; | 71 this.$.input.type = this.type; |
72 } | 72 } |
73 this.updateDomainVisibility_(); | 73 this.updateDomainVisibility_(); |
74 } | 74 } |
75 }; | 75 }; |
76 })()); | 76 })()); |
77 | |
OLD | NEW |