OLD | NEW |
1 | 1 |
2 | 2 |
3 /** @polymerBehavior */ | 3 /** @polymerBehavior */ |
4 Polymer.IronSelectableBehavior = { | 4 Polymer.IronSelectableBehavior = { |
5 | 5 |
6 properties: { | 6 properties: { |
7 | 7 |
8 /** | 8 /** |
9 * If you want to use the attribute value of an element for `selected` ins
tead of the index, | 9 * If you want to use the attribute value of an element for `selected` ins
tead of the index, |
10 * set this to the name of the attribute. | 10 * set this to the name of the attribute. |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 | 285 |
286 _itemActivate: function(value, item) { | 286 _itemActivate: function(value, item) { |
287 if (!this.fire('iron-activate', | 287 if (!this.fire('iron-activate', |
288 {selected: value, item: item}, {cancelable: true}).defaultPrevented) { | 288 {selected: value, item: item}, {cancelable: true}).defaultPrevented) { |
289 this.select(value); | 289 this.select(value); |
290 } | 290 } |
291 } | 291 } |
292 | 292 |
293 }; | 293 }; |
294 | 294 |
OLD | NEW |