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

Side by Side Diff: third_party/polymer/v0_8/components-chromium/iron-input/iron-input-extracted.js

Issue 1082403004: Import Polymer 0.8 and several key elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rerun reproduce.sh Created 5 years, 8 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
(Empty)
1
2
3 Polymer({
4
5 is: 'iron-input',
6
7 extends: 'input',
8
9 properties: {
10
11 /**
12 * Use this property instead of `value` for two-way data binding.
13 */
14 bindValue: {
15 observer: '_bindValueChanged',
16 type: String
17 }
18
19 },
20
21 listeners: {
22 'input': '_onInput'
23 },
24
25 attached: function() {
26 this.bindValue = this.value;
27 },
28
29 _bindValueChanged: function() {
30 this.value = this.bindValue;
31 // manually notify because we don't want to notify until after setting val ue
32 this.fire('bind-value-changed', {value: this.bindValue});
33 },
34
35 _onInput: function(event) {
36 this.bindValue = event.target.value;
37 }
38
39 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698