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

Side by Side Diff: samples/third_party/todomvc_performance/js_todomvc/elements/td-input.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 unified diff | Download patch
OLDNEW
(Empty)
1 <link rel="import" href="../components/polymer/polymer.html">
2
3 <polymer-element name="td-input" extends="input" on-keyup="{{keyupAction}}" on-k eypress="{{keypressAction}}">
4 <script>
5 (function() {
6 var ENTER_KEY = 13;
7 var ESC_KEY = 27;
8 Polymer('td-input', {
9 keypressAction: function(e, detail, sender) {
10 // Listen for enter on keypress but esc on keyup, because
11 // IE doesn't fire keyup for enter.
12 if (e.keyCode === ENTER_KEY) {
13 this.fire('td-input-commit');
14 }
15 },
16 keyupAction: function(e, detail, sender) {
17 if (e.keyCode === ESC_KEY) {
18 this.fire('td-input-cancel');
19 }
20 }
21 });
22 })();
23 </script>
24 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698