Skip to content

Commit 9be8dae

Browse files
committed
Introduce published properties
1 parent 974c68d commit 9be8dae

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

filter-by-text.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<div>{{ matchCount }} matches</div>
1010

11-
<basic-list-box on-core-select="{{ onListBoxSelect }}" class="options">
11+
<basic-list-box selectedItem="{{ selectedItem }}" class="options">
1212
<content></content>
1313
</basic-list-box>
1414

filter-by-text.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ Polymer('filter-by-text', {
2222
this.filter(newValue);
2323
},
2424

25-
onListBoxSelect: function(event) {
26-
if (event.detail.isSelected) {
27-
this.dispatchEvent(new CustomEvent('change', { detail: event.detail.item }));
28-
}
25+
selectedItemChanged: function(oldValue, newValue) {
26+
this.dispatchEvent(new CustomEvent('change', { detail: newValue }));
2927
}
3028

3129
});

0 commit comments

Comments
 (0)