Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library todomvc.web.todo_row; | 5 library todomvc.web.todo_row; |
| 6 | 6 |
| 7 import 'dart:html'; | 7 import 'dart:html'; |
| 8 import 'package:polymer/polymer.dart'; | 8 import 'package:polymer/polymer.dart'; |
| 9 import 'model.dart'; | 9 import 'model.dart'; |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 22 | 22 |
| 23 void ready() { | 23 void ready() { |
| 24 var root = getShadowRoot("todo-row"); | 24 var root = getShadowRoot("todo-row"); |
| 25 var label = root.query('#label'); | 25 var label = root.query('#label'); |
| 26 var item = root.query('.todo-item'); | 26 var item = root.query('.todo-item'); |
| 27 | 27 |
| 28 bindCssClass(item, 'completed', this, 'todo.done'); | 28 bindCssClass(item, 'completed', this, 'todo.done'); |
| 29 bindCssClass(item, 'editing', label, 'editing'); | 29 bindCssClass(item, 'editing', label, 'editing'); |
| 30 } | 30 } |
| 31 | 31 |
| 32 void removeTodo() => appModel.todos.remove(todo); | 32 void removeTodo() { appModel.todos.remove(todo); } |
|
Siggi Cherem (dart-lang)
2013/10/21 21:07:42
I can swear we had fixed this before
Jennifer Messerly
2013/10/21 21:42:56
yeah, not sure :)
| |
| 33 } | 33 } |
| OLD | NEW |