Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-input/paper-input-char-counter-extracted.js

Issue 1862213002: Roll third_party/polymer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove obsolete appearance_browsertest.js, result of a previous bad merge. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 Polymer({ 1 Polymer({
2 is: 'paper-input-char-counter', 2 is: 'paper-input-char-counter',
3 3
4 behaviors: [ 4 behaviors: [
5 Polymer.PaperInputAddonBehavior 5 Polymer.PaperInputAddonBehavior
6 ], 6 ],
7 7
8 properties: { 8 properties: {
9 _charCounterStr: { 9 _charCounterStr: {
10 type: String, 10 type: String,
(...skipping 20 matching lines...) Expand all
31 state.value = state.value || ''; 31 state.value = state.value || '';
32 32
33 var counter = state.value.length.toString(); 33 var counter = state.value.length.toString();
34 34
35 if (state.inputElement.hasAttribute('maxlength')) { 35 if (state.inputElement.hasAttribute('maxlength')) {
36 counter += '/' + state.inputElement.getAttribute('maxlength'); 36 counter += '/' + state.inputElement.getAttribute('maxlength');
37 } 37 }
38 38
39 this._charCounterStr = counter; 39 this._charCounterStr = counter;
40 } 40 }
41 }); 41 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698