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

Unified Diff: third_party/polymer/v0_8/components-chromium/paper-input/paper-input-error-extracted.js

Issue 1162563004: Upgrade to 1.0 and switch clients to dom-repeat where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a layout import and remove the gzipped webanimation in reproduce.sh Created 5 years, 7 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/v0_8/components-chromium/paper-input/paper-input-error-extracted.js
diff --git a/third_party/polymer/v0_8/components-chromium/paper-input/paper-input-error-extracted.js b/third_party/polymer/v0_8/components-chromium/paper-input/paper-input-error-extracted.js
index e447df14180c8bf82204844d9d621ea318e86d5b..4cea279fc190f7c021694eb52a29c0c8a200a273 100644
--- a/third_party/polymer/v0_8/components-chromium/paper-input/paper-input-error-extracted.js
+++ b/third_party/polymer/v0_8/components-chromium/paper-input/paper-input-error-extracted.js
@@ -6,27 +6,29 @@
is: 'paper-input-error',
- enableCustomStyleProperties: true,
+ behaviors: [
+ Polymer.PaperInputAddonBehavior
+ ],
hostAttributes: {
- 'add-on': '',
'role': 'alert'
},
properties: {
/**
- * Set to true to show the error.
+ * True if the error is showing.
*/
invalid: {
+ readOnly: true,
reflectToAttribute: true,
type: Boolean
}
},
- attached: function() {
- this.fire('addon-attached');
+ update: function(state) {
+ this._setInvalid(state.invalid);
}
})

Powered by Google App Engine
This is Rietveld 408576698