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

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
« no previous file with comments | « samples/third_party/todomvc/web/app.dart ('k') | samples/third_party/todomvc/web/router_options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a4d1f08d4e15b2f57ad9c59d0027de53e1d064aa..746e62b7359cbd7073b03b5aaedf737bcdbe3f92 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');
@@ -48,5 +52,5 @@ class EditableLabel extends PolymerElement {
@initMethod
void _init() {
- Polymer.register('editable-label', EditableLabel);
+ Polymer.register('editable-label', type: EditableLabel);
}
« no previous file with comments | « samples/third_party/todomvc/web/app.dart ('k') | samples/third_party/todomvc/web/router_options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698