| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library editable_label; | 5 library editable_label; |
| 6 | 6 |
| 7 import 'dart:html'; | 7 import 'dart:html'; |
| 8 import 'package:polymer/polymer.dart'; | 8 import 'package:polymer/polymer.dart'; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 editing = false; | 38 editing = false; |
| 39 } | 39 } |
| 40 | 40 |
| 41 void maybeCancel(KeyboardEvent e) { | 41 void maybeCancel(KeyboardEvent e) { |
| 42 if (e.keyCode == KeyCode.ESC) { | 42 if (e.keyCode == KeyCode.ESC) { |
| 43 editing = false; | 43 editing = false; |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 @polymerInitMethod | 48 void main() { |
| 49 void _init() { | |
| 50 registerPolymerElement('editable-label', () => new EditableLabel()); | 49 registerPolymerElement('editable-label', () => new EditableLabel()); |
| 51 } | 50 } |
| OLD | NEW |