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

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

Issue 1287713002: [MD settings] merge polymer 1.0.11; hack for settings checkbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
2
3 (function() { 1 (function() {
4 2
5 Polymer({ 3 Polymer({
6 4
7 is: 'paper-input-char-counter', 5 is: 'paper-input-char-counter',
8 6
9 behaviors: [ 7 behaviors: [
10 Polymer.PaperInputAddonBehavior 8 Polymer.PaperInputAddonBehavior
11 ], 9 ],
12 10
(...skipping 17 matching lines...) Expand all
30 var str = state.value.replace(/(\r\n|\n|\r)/g, '--').length; 28 var str = state.value.replace(/(\r\n|\n|\r)/g, '--').length;
31 29
32 if (state.inputElement.hasAttribute('maxlength')) { 30 if (state.inputElement.hasAttribute('maxlength')) {
33 str += '/' + state.inputElement.getAttribute('maxlength'); 31 str += '/' + state.inputElement.getAttribute('maxlength');
34 } 32 }
35 this._charCounterStr = str; 33 this._charCounterStr = str;
36 } 34 }
37 35
38 }); 36 });
39 37
40 })(); 38 })();
41
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698