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

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

Issue 26051002: Updating Polymer to derive from custom elements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 eafb7d2f0e2689b8981b77c354075637e393e178..2c089b58e0a8a60130c8ad9a2d4c1ac9add34dc6 100644
--- a/samples/third_party/todomvc/web/editable_label.dart
+++ b/samples/third_party/todomvc/web/editable_label.dart
@@ -15,6 +15,10 @@ class EditableLabel extends PolymerElement {
@observable bool editing = false;
@published String value = '';
+ factory EditableLabel() => new Element.tag('editable-label');
+
+ EditableLabel.created() : super.created();
+
bool get applyAuthorStyles => true;
InputElement get _editBox => getShadowRoot("editable-label").query('#edit');

Powered by Google App Engine
This is Rietveld 408576698