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

Side by Side Diff: samples/third_party/todomvc/web/elements/td_todos.dart

Issue 182193002: [polymer] interop with polymer-element and polymer.js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 library todomvc.web.elements.td_todos; 1 library todomvc.web.elements.td_todos;
2 2
3 import 'dart:html'; 3 import 'dart:html';
4 import 'package:polymer/polymer.dart'; 4 import 'package:polymer/polymer.dart';
5 import 'td_input.dart'; 5 import 'td_input.dart';
6 import 'td_model.dart'; 6 import 'td_model.dart';
7 7
8 @CustomTag('td-todos') 8 @CustomTag('td-todos')
9 class TodoList extends PolymerElement { 9 class TodoList extends PolymerElement {
10 @published String modelId; 10 @published String modelId;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 void toggleAllCompletedAction(e, detail, sender) { 50 void toggleAllCompletedAction(e, detail, sender) {
51 model.setItemsCompleted(sender.checked); 51 model.setItemsCompleted(sender.checked);
52 } 52 }
53 53
54 void clearCompletedAction() { 54 void clearCompletedAction() {
55 model.clearItems(); 55 model.clearItems();
56 } 56 }
57 57
58 // TODO(jmesserly): workaround for HTML Imports not setting correct baseURI 58 // TODO(jmesserly): workaround for HTML Imports not setting correct baseURI
59 String get baseUri => declaration.ownerDocument == document ? '../' : ''; 59 String get baseUri =>
60 declaration.element.ownerDocument == document ? '../' : '';
60 } 61 }
OLDNEW
« no previous file with comments | « samples/third_party/todomvc/test/markdone_test.html ('k') | samples/third_party/todomvc/web/elements/td_todos.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698