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

Unified Diff: samples/third_party/todomvc/web/todo_row.dart

Issue 76013002: "Reverting 30387" -- failures on IE (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/third_party/todomvc/web/router_options.html ('k') | samples/third_party/todomvc/web/todo_row.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/third_party/todomvc/web/todo_row.dart
diff --git a/samples/third_party/todomvc/web/todo_row.dart b/samples/third_party/todomvc/web/todo_row.dart
new file mode 100644
index 0000000000000000000000000000000000000000..b3536776e0627a12a4ca5df4917084d12aa30444
--- /dev/null
+++ b/samples/third_party/todomvc/web/todo_row.dart
@@ -0,0 +1,33 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+library todomvc.web.todo_row;
+
+import 'dart:html';
+import 'package:polymer/polymer.dart';
+import 'model.dart';
+
+@CustomTag('todo-row')
+class TodoRow extends LIElement with Polymer, Observable {
+ @published Todo todo;
+
+ bool get applyAuthorStyles => true;
+
+ factory TodoRow() => new Element.tag('todo-row');
+
+ TodoRow.created() : super.created() {
+ polymerCreated();
+ }
+
+ void ready() {
+ var root = getShadowRoot("todo-row");
+ var label = root.querySelector('#label');
+ var item = root.querySelector('.todo-item');
+
+ bindCssClass(item, 'completed', this, 'todo.done');
+ bindCssClass(item, 'editing', label, 'editing');
+ }
+
+ void removeTodo() { appModel.todos.remove(todo); }
+}
« no previous file with comments | « samples/third_party/todomvc/web/router_options.html ('k') | samples/third_party/todomvc/web/todo_row.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698