| OLD | NEW |
| 1 library todomvc.web.elements.td_item; | 1 library todomvc.web.elements.td_item; |
| 2 | 2 |
| 3 import 'dart:html'; | 3 import 'dart:html'; |
| 4 import 'package:polymer/polymer.dart'; | 4 import 'package:polymer/polymer.dart'; |
| 5 import 'td_model.dart'; | 5 import 'td_model.dart'; |
| 6 | 6 |
| 7 @CustomTag('td-item') | 7 @CustomTag('td-item') |
| 8 class TodoItem extends LIElement with Polymer, Observable { | 8 class TodoItem extends LIElement with Polymer, Observable { |
| 9 @published bool editing = false; | 9 @published bool editing = false; |
| 10 @published Todo item; | 10 @published Todo item; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 itemChangeAction() { | 36 itemChangeAction() { |
| 37 // TODO(jmesserly): asyncFire is needed because "click" fires before | 37 // TODO(jmesserly): asyncFire is needed because "click" fires before |
| 38 // "item.checked" is updated on Firefox. Need to check Polymer.js. | 38 // "item.checked" is updated on Firefox. Need to check Polymer.js. |
| 39 asyncFire('td-item-changed'); | 39 asyncFire('td-item-changed'); |
| 40 } | 40 } |
| 41 | 41 |
| 42 destroyAction() { | 42 destroyAction() { |
| 43 fire('td-destroy-item', detail: item); | 43 fire('td-destroy-item', detail: item); |
| 44 } | 44 } |
| 45 } | 45 } |
| OLD | NEW |