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

Unified Diff: example/todomvc/web/todo_row.dart

Issue 20863002: Introduce boot.js: this finally makes it possible to load and run Todomvc (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « example/todomvc/web/router_options.dart ('k') | lib/boot.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: example/todomvc/web/todo_row.dart
diff --git a/example/todomvc/web/todo_row.dart b/example/todomvc/web/todo_row.dart
index 4e2a75799b95d1a92e569899f7a23184957d5211..11601c43f7813b8fab81f6db9b3dee9bcaa6157b 100644
--- a/example/todomvc/web/todo_row.dart
+++ b/example/todomvc/web/todo_row.dart
@@ -4,24 +4,25 @@
library todo_row;
-import 'package:observe/observe.dart';
import 'package:polymer/polymer.dart';
import 'model.dart';
+@CustomTag('todo-row')
class TodoRow extends PolymerElement with ObservableMixin {
@observable Todo todo;
bool get applyAuthorStyles => true;
- ScopedCssMapper get css => getScopedCss("todo-row");
- created() {
+ // TODO(sigmund,terry): bring back scoped-css polyfills
+
+ void created() {
super.created();
var root = getShadowRoot("todo-row");
var label = root.query('#label').xtag;
- var item = root.query('.' + css['.todo-item']);
+ var item = root.query('.todo-item');
- bindCssClass(item, css['.completed'], this, 'todo.done');
- bindCssClass(item, css['.editing'], label, 'editing');
+ bindCssClass(item, 'completed', this, 'todo.done');
+ bindCssClass(item, 'editing', label, 'editing');
}
void removeTodo() => appModel.todos.remove(todo);
« no previous file with comments | « example/todomvc/web/router_options.dart ('k') | lib/boot.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698