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

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

Issue 1336623003: [MD settings] updating polymer to 1.1.13 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changed Polymer.IronCheckedElementBehavior name Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/v1_0/components-chromium/iron-autogrow-textarea/iron-autogrow-textarea-extracted.js
diff --git a/third_party/polymer/v1_0/components-chromium/iron-autogrow-textarea/iron-autogrow-textarea-extracted.js b/third_party/polymer/v1_0/components-chromium/iron-autogrow-textarea/iron-autogrow-textarea-extracted.js
index 13f0ebb04b7ef1ec409113628caf5a2fd26e3e99..216df53b92fffcce2e836782931f9bfb238d1283 100644
--- a/third_party/polymer/v1_0/components-chromium/iron-autogrow-textarea/iron-autogrow-textarea-extracted.js
+++ b/third_party/polymer/v1_0/components-chromium/iron-autogrow-textarea/iron-autogrow-textarea-extracted.js
@@ -150,17 +150,6 @@ Polymer({
return valid;
},
- _update: function() {
- this.$.mirror.innerHTML = this._valueForMirror();
-
- var textarea = this.textarea;
- // If the value of the textarea was updated imperatively, then we
- // need to manually update bindValue as well.
- if (textarea && this.bindValue != textarea.value) {
- this.bindValue = textarea.value;
- }
- },
-
_bindValueChanged: function() {
var textarea = this.textarea;
if (!textarea) {
@@ -168,14 +157,13 @@ Polymer({
}
textarea.value = this.bindValue;
- this._update();
+ this.$.mirror.innerHTML = this._valueForMirror();
// manually notify because we don't want to notify until after setting value
this.fire('bind-value-changed', {value: this.bindValue});
},
_onInput: function(event) {
this.bindValue = event.path ? event.path[0].value : event.target.value;
- this._update();
},
_constrain: function(tokens) {

Powered by Google App Engine
This is Rietveld 408576698