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

Unified Diff: samples/third_party/todomvc_performance/js_todomvc/elements/td-item.html

Issue 1576153002: Remove the Dromaeo and TodoMVC samples. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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_performance/js_todomvc/elements/td-item.html
diff --git a/samples/third_party/todomvc_performance/js_todomvc/elements/td-item.html b/samples/third_party/todomvc_performance/js_todomvc/elements/td-item.html
deleted file mode 100755
index 2cc13a3dd91bc543987a2741099560c39104777f..0000000000000000000000000000000000000000
--- a/samples/third_party/todomvc_performance/js_todomvc/elements/td-item.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<link rel="import" href="../components/polymer/polymer.html">
-<link rel="import" href="td-input.html">
-
-<polymer-element name="td-item" extends="li" attributes="item editing" on-blur="{{commitAction}}">
- <template>
- <link rel="stylesheet" href="td-item.css">
- <div class="view {{ {completed: item.completed, editing: editing} | tokenList }}" hidden?="{{editing}}" on-dblclick="{{editAction}}">
- <input type="checkbox" class="toggle" checked="{{item.completed}}" on-click="{{itemChangeAction}}">
- <label>{{item.title}}</label>
- <button class="destroy" on-click="{{destroyAction}}"></button>
- </div>
- <input is="td-input" id="edit" class="edit" value="{{item.title}}" hidden?="{{!editing}}" on-td-input-commit="{{commitAction}}" on-td-input-cancel="{{cancelAction}}">
- </template>
- <script>
- (function() {
- Polymer('td-item', {
- editing: false,
- editAction: function() {
- this.editing = true;
- // schedule focus for the end of microtask, when the input will be visible
- this.asyncMethod(function() {
- this.$.edit.focus();
- });
- },
- commitAction: function() {
- if (this.editing) {
- this.editing = false;
- this.item.title = this.item.title.trim();
- if (this.item.title === '') {
- this.destroyAction();
- }
- this.fire('td-item-changed');
- }
- },
- cancelAction: function() {
- this.editing = false;
- },
- itemChangeAction: function() {
- this.fire('td-item-changed');
- },
- destroyAction: function() {
- this.fire('td-destroy-item', this.item);
- }
- });
- })();
- </script>
-</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698