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

Side by Side Diff: samples/third_party/todomvc_performance/web/elements/td_item.dart

Issue 204733004: Added TodoMVC startup benchmarks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698