| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 3 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 4 for details. All rights reserved. Use of this source code is governed by a | 4 for details. All rights reserved. Use of this source code is governed by a |
| 5 BSD-style license that can be found in the LICENSE file. | 5 BSD-style license that can be found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 <html> | 7 <html> |
| 8 <head> | 8 <head> |
| 9 <meta charset="utf-8"> | 9 <meta charset="utf-8"> |
| 10 </head> | 10 </head> |
| 11 <body> | 11 <body> |
| 12 <element name="editable-label" extends="div" attributes="value" | 12 <polymer-element name="editable-label" extends="div" attributes="value" |
| 13 apply-author-styles> | 13 apply-author-styles> |
| 14 <template> | 14 <template> |
| 15 <template bind if="{{notEditing}}"> | 15 <template bind if="{{notEditing}}"> |
| 16 <label class='edit-label' on-double-click="edit">{{value}}</label> | 16 <label class='edit-label' on-double-click="edit">{{value}}</label> |
| 17 </template> | 17 </template> |
| 18 <template bind if="{{editing}}"> | 18 <template bind if="{{editing}}"> |
| 19 <form on-submit="update"> | 19 <form on-submit="update"> |
| 20 <input id="edit" class="edit editing" | 20 <input id="edit" class="edit editing" |
| 21 on-blur="update" | 21 on-blur="update" |
| 22 on-key-up="maybeCancel"> | 22 on-key-up="maybeCancel"> |
| 23 </form> | 23 </form> |
| 24 </template> | 24 </template> |
| 25 </template> | 25 </template> |
| 26 <script type="application/dart" src="editable_label.dart"></script> | 26 <script type="application/dart" src="editable_label.dart"></script> |
| 27 </element> | 27 </polymer-element> |
| 28 </body> | 28 </body> |
| 29 </html> | 29 </html> |
| OLD | NEW |