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

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

Issue 1221923003: Update bower.json for Polymer elements and add PRESUBMIT.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 Polymer.IronControlState
9 ], 10 ],
10 11
11 properties: { 12 properties: {
12 13
13 /** 14 /**
14 * Use this property instead of `value` for two-way data binding. 15 * Use this property instead of `value` for two-way data binding.
15 */ 16 */
16 bindValue: { 17 bindValue: {
17 observer: '_bindValueChanged', 18 observer: '_bindValueChanged',
18 type: String 19 type: String
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 return; 166 return;
166 } 167 }
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') : ['']; 168 this.tokens = (input && input.value) ? input.value.replace(/&/gm, '&amp;') .replace(/"/gm, '&quot;').replace(/'/gm, '&#39;').replace(/</gm, '&lt;').replace (/>/gm, '&gt;').split('\n') : [''];
168 return this._constrain(this.tokens); 169 return this._constrain(this.tokens);
169 }, 170 },
170 171
171 _updateCached: function() { 172 _updateCached: function() {
172 this.$.mirror.innerHTML = this._constrain(this.tokens); 173 this.$.mirror.innerHTML = this._constrain(this.tokens);
173 } 174 }
174 }) 175 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698