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

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

Issue 26967004: add @MirrorsUsed to observe/polymer/polymer_exprs pkgs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix typo in comment Created 7 years, 2 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
Index: samples/third_party/todomvc/web/editable_label.dart
diff --git a/samples/third_party/todomvc/web/editable_label.dart b/samples/third_party/todomvc/web/editable_label.dart
index 58837269e5e92aaf503779462c5d9ee5fc083f0d..af8abba96b2baaf5ad453a6eab3e7453e25cc3d4 100644
--- a/samples/third_party/todomvc/web/editable_label.dart
+++ b/samples/third_party/todomvc/web/editable_label.dart
@@ -11,6 +11,10 @@ import 'package:polymer/polymer.dart';
* Label whose [value] can be edited by double clicking. When editing, it
* displays a form and input element, otherwise it displays the label.
*/
+// For illustration purposes this type uses Polymer.register instead of
+// CustomTag. We must mark it @reflectable to ensure its members
+// (the event handlers) are preserved and can be referenced from HTML.
+@reflectable
class EditableLabel extends PolymerElement {
@observable bool editing = false;
@published String value = '';

Powered by Google App Engine
This is Rietveld 408576698