3 is: 'paper-input-char-counter',
6 Polymer.PaperInputAddonBehavior
16 update: function(state) {
17 if (!state.inputElement) {
21 state.value = state.value || '';
23 // Account for the textarea's new lines.
24 var str = state.value.replace(/(\r\n|\n|\r)/g, '--').length;
26 if (state.inputElement.hasAttribute('maxlength')) {
27 str += '/' + state.inputElement.getAttribute('maxlength');
29 this._charCounterStr = str;