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

Unified Diff: samples/third_party/todomvc/web/app.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/app.dart
diff --git a/samples/third_party/todomvc/web/app.dart b/samples/third_party/todomvc/web/app.dart
index f3382dd6912114675dd5b7d4b504f3a6e3086c9b..4464b1a1e55b7485a08e8c266c2d23eb42f04a5a 100644
--- a/samples/third_party/todomvc/web/app.dart
+++ b/samples/third_party/todomvc/web/app.dart
@@ -8,13 +8,14 @@ import 'dart:html';
import 'package:polymer/polymer.dart';
import 'model.dart';
-@CustomTag("todo-app")
+@CustomTag('todo-app', type: TodoApp)
class TodoApp extends PolymerElement {
@observable AppModel app;
bool get applyAuthorStyles => true;
- void created() {
- super.created();
+ factory TodoApp() => new Element.tag('TodoApp');
+
+ TodoApp.created() : super.created() {
app = appModel;
}

Powered by Google App Engine
This is Rietveld 408576698