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

Unified Diff: polymer_0.5.4/bower_components/paper-input/paper-input.html

Issue 895523005: Added Polymer 0.5.4 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 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: polymer_0.5.4/bower_components/paper-input/paper-input.html
diff --git a/polymer_0.5.0/bower_components/paper-input/paper-input.html b/polymer_0.5.4/bower_components/paper-input/paper-input.html
similarity index 89%
copy from polymer_0.5.0/bower_components/paper-input/paper-input.html
copy to polymer_0.5.4/bower_components/paper-input/paper-input.html
index 330d35c9242ef609e8ca398d3f49332ed4a04313..44f7150db2ba3c4375a926da69eeb158587c7aa8 100644
--- a/polymer_0.5.0/bower_components/paper-input/paper-input.html
+++ b/polymer_0.5.4/bower_components/paper-input/paper-input.html
@@ -61,7 +61,7 @@ Use `paper-input-decorator` if you would like to implement validation.
</style>
<paper-input-decorator id="decorator" label="{{label}}" floatingLabel="{{floatingLabel}}" value="{{value}}" disabled?="{{disabled}}">
- <input is="core-input" value="{{value}}" committedValue="{{committedValue}}" on-change="{{changeAction}}" disabled?="{{disabled}}">
+ <input is="core-input" id="input" value="{{value}}" committedValue="{{committedValue}}" on-change="{{changeAction}}" disabled?="{{disabled}}">
</paper-input-decorator>
</template>
@@ -102,16 +102,16 @@ Use `paper-input-decorator` if you would like to implement validation.
/**
* The current value of the input.
- *
+ *
* @attribute value
* @type String
* @default ''
*/
value: '',
-
+
/**
* The most recently committed value of the input.
- *
+ *
* @attribute committedValue
* @type String
* @default ''
@@ -120,15 +120,22 @@ Use `paper-input-decorator` if you would like to implement validation.
},
+ /**
+ * Focuses the `input`.
+ *
+ * @method focus
+ */
+ focus: function() {
+ this.$.input.focus();
+ },
+
valueChanged: function() {
this.$.decorator.updateLabelVisibility(this.value);
},
changeAction: function(e) {
- if (!window.ShadowDOMPolyfill) {
- // re-fire event that does not bubble across shadow roots
- this.fire('change', null, this);
- }
+ // re-fire event that does not bubble across shadow roots
+ this.fire('change', null, this);
}
});

Powered by Google App Engine
This is Rietveld 408576698