7 is: 'paper-input-char-counter',
10 Polymer.PaperInputAddonBehavior
22 update: function(state) {
23 if (!state.inputElement) {
27 state.value = state.value || '';
29 // Account for the textarea's new lines.
30 var str = state.value.replace(/(\r\n|\n|\r)/g, '--').length;
32 if (state.inputElement.hasAttribute('maxlength')) {
33 str += '/' + state.inputElement.getAttribute('maxlength');
35 this._charCounterStr = str;