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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/iron-autogrow-textarea/iron-autogrow-textarea-extracted.js

Issue 1187823002: Update Polymer components and re-run reproduce.sh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 6 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 1
2 2
3 Polymer({ 3 Polymer({
4 4
5 is: 'iron-autogrow-textarea', 5 is: 'iron-autogrow-textarea',
6 6
7 behaviors: [ 7 behaviors: [
8 Polymer.IronValidatableBehavior 8 Polymer.IronValidatableBehavior
9 ], 9 ],
10 10
(...skipping 28 matching lines...) Expand all
39 * @type number 39 * @type number
40 * @default 0 40 * @default 0
41 */ 41 */
42 maxRows: { 42 maxRows: {
43 type: Number, 43 type: Number,
44 value: 0, 44 value: 0,
45 observer: '_updateCached' 45 observer: '_updateCached'
46 }, 46 },
47 47
48 /** 48 /**
49 * Bound to the textarea's `autocomplete` attribute.
50 */
51 autocomplete: {
52 type: String,
53 value: 'off'
54 },
55
56 /**
57 * Bound to the textarea's `autofocus` attribute.
58 */
59 autofocus: {
60 type: String,
61 value: 'off'
62 },
63
64 /**
65 * Bound to the textarea's `inputmode` attribute.
66 */
67 inputmode: {
68 type: String
69 },
70
71 /**
72 * Bound to the textarea's `name` attribute.
73 */
74 name: {
75 type: String
76 },
77
78 /**
79 * Bound to the textarea's `placeholder` attribute.
80 */
81 placeholder: {
82 type: String
83 },
84
85 /**
86 * Bound to the textarea's `readonly` attribute.
87 */
88 readonly: {
89 type: String
90 },
91
92 /**
49 * Set to true to mark the textarea as required. 93 * Set to true to mark the textarea as required.
50 */ 94 */
51 required: { 95 required: {
52 type: Boolean 96 type: Boolean
53 }, 97 },
54 98
55 /** 99 /**
56 * The maximum length of the input value. 100 * The maximum length of the input value.
57 */ 101 */
58 maxlength: { 102 maxlength: {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 return; 165 return;
122 } 166 }
123 this.tokens = (input && input.value) ? input.value.replace(/&/gm, '&amp;') .replace(/"/gm, '&quot;').replace(/'/gm, '&#39;').replace(/</gm, '&lt;').replace (/>/gm, '&gt;').split('\n') : ['']; 167 this.tokens = (input && input.value) ? input.value.replace(/&/gm, '&amp;') .replace(/"/gm, '&quot;').replace(/'/gm, '&#39;').replace(/</gm, '&lt;').replace (/>/gm, '&gt;').split('\n') : [''];
124 return this._constrain(this.tokens); 168 return this._constrain(this.tokens);
125 }, 169 },
126 170
127 _updateCached: function() { 171 _updateCached: function() {
128 this.$.mirror.innerHTML = this._constrain(this.tokens); 172 this.$.mirror.innerHTML = this._constrain(this.tokens);
129 } 173 }
130 }) 174 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698