5 is: 'paper-input-char-counter',
8 Polymer.PaperInputAddonBehavior
20 update: function(state) {
21 if (!state.inputElement) {
25 state.value = state.value || '';
27 // Account for the textarea's new lines.
28 var str = state.value.replace(/(\r\n|\n|\r)/g, '--').length;
30 if (state.inputElement.hasAttribute('maxlength')) {
31 str += '/' + state.inputElement.getAttribute('maxlength');
33 this._charCounterStr = str;