| OLD | NEW |
| 1 diff --git a/components-chromium/font-roboto/roboto.html b/components-chromium/f
ont-roboto/roboto.html | 1 diff --git a/components-chromium/font-roboto/roboto.html b/components-chromium/f
ont-roboto/roboto.html |
| 2 index 7a24999..4eefcba 100644 | 2 index 7a24999..4eefcba 100644 |
| 3 --- a/components-chromium/font-roboto/roboto.html | 3 --- a/components-chromium/font-roboto/roboto.html |
| 4 +++ b/components-chromium/font-roboto/roboto.html | 4 +++ b/components-chromium/font-roboto/roboto.html |
| 5 @@ -7,5 +7,4 @@ The complete set of contributors may be found at http://polymer.
github.io/CONTRI | 5 @@ -7,5 +7,4 @@ The complete set of contributors may be found at http://polymer.
github.io/CONTRI |
| 6 Code distributed by Google as part of the polymer project is also | 6 Code distributed by Google as part of the polymer project is also |
| 7 subject to an additional IP rights grant found at http://polymer.github.io/PATE
NTS.txt | 7 subject to an additional IP rights grant found at http://polymer.github.io/PATE
NTS.txt |
| 8 --> | 8 --> |
| 9 -<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400
,300,300italic,400italic,500,500italic,700,700italic"> | 9 -<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400
,300,300italic,400italic,500,500italic,700,700italic"> |
| 10 -<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mon
o:400,700"> | 10 -<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mon
o:400,700"> |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 + * inputElement: The input element. | 67 + * inputElement: The input element. |
| 68 + * value: The input value. | 68 + * value: The input value. |
| 69 + * invalid: True if the input value is invalid. | 69 + * invalid: True if the input value is invalid. |
| 70 + */ | 70 + */ |
| 71 update: function(state) { | 71 update: function(state) { |
| 72 if (!state.inputElement) { | 72 if (!state.inputElement) { |
| 73 return; | 73 return; |
| 74 @@ -20,11 +31,11 @@ Polymer({ | 74 @@ -20,11 +31,11 @@ Polymer({ |
| 75 state.value = state.value || ''; | 75 state.value = state.value || ''; |
| 76 | 76 |
| 77 // Account for the textarea's new lines. | 77 - var counter = state.value.length; |
| 78 - var str = state.value.replace(/(\r\n|\n|\r)/g, '--').length; | 78 + var counter = state.value.length.toString(); |
| 79 + var str = state.value.replace(/(\r\n|\n|\r)/g, '--').length.toString(); | |
| 80 | 79 |
| 81 if (state.inputElement.hasAttribute('maxlength')) { | 80 if (state.inputElement.hasAttribute('maxlength')) { |
| 82 str += '/' + state.inputElement.getAttribute('maxlength'); | 81 counter += '/' + state.inputElement.getAttribute('maxlength'); |
| 83 } | 82 } |
| 84 this._charCounterStr = str; | 83 |
| 84 this._charCounterStr = counter; |
| 85 } | 85 } |
| 86 - }); | 86 - }); |
| 87 \ No newline at end of file | 87 \ No newline at end of file |
| 88 + }); | 88 + }); |
| 89 diff --git a/components-chromium/paper-input/paper-input-error-extracted.js b/co
mponents-chromium/paper-input/paper-input-error-extracted.js | 89 diff --git a/components-chromium/paper-input/paper-input-error-extracted.js b/co
mponents-chromium/paper-input/paper-input-error-extracted.js |
| 90 index ac6fe00..fb45601 100644 | 90 index ac6fe00..fb45601 100644 |
| 91 --- a/components-chromium/paper-input/paper-input-error-extracted.js | 91 --- a/components-chromium/paper-input/paper-input-error-extracted.js |
| 92 +++ b/components-chromium/paper-input/paper-input-error-extracted.js | 92 +++ b/components-chromium/paper-input/paper-input-error-extracted.js |
| 93 @@ -16,7 +16,18 @@ Polymer({ | 93 @@ -16,7 +16,18 @@ Polymer({ |
| 94 } | 94 } |
| 95 }, | 95 }, |
| 96 | 96 |
| 97 + /** | 97 + /** |
| 98 + * This overrides the update function in PaperInputAddonBehavior. | 98 + * This overrides the update function in PaperInputAddonBehavior. |
| 99 + * @param {{ | 99 + * @param {{ |
| 100 + * inputElement: (Element|undefined), | 100 + * inputElement: (Element|undefined), |
| 101 + * value: (string|undefined), | 101 + * value: (string|undefined), |
| 102 + * invalid: boolean | 102 + * invalid: boolean |
| 103 + * }} state - | 103 + * }} state - |
| 104 + * inputElement: The input element. | 104 + * inputElement: The input element. |
| 105 + * value: The input value. | 105 + * value: The input value. |
| 106 + * invalid: True if the input value is invalid. | 106 + * invalid: True if the input value is invalid. |
| 107 + */ | 107 + */ |
| 108 update: function(state) { | 108 update: function(state) { |
| 109 this._setInvalid(state.invalid); | 109 this._setInvalid(state.invalid); |
| 110 } | 110 } |
| 111 - }); | 111 - }); |
| 112 \ No newline at end of file | 112 \ No newline at end of file |
| 113 + }); | 113 + }); |
| OLD | NEW |