| 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 curly_block_element; | 5 library curly_block_element; |
| 6 | 6 |
| 7 import 'package:polymer/polymer.dart'; | 7 import 'package:polymer/polymer.dart'; |
| 8 | 8 |
| 9 @CustomTag('curly-block') | 9 @CustomTag('curly-block') |
| 10 class CurlyBlockElement extends PolymerElement { | 10 class CurlyBlockElement extends PolymerElement { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 return; | 30 return; |
| 31 } | 31 } |
| 32 if (callback != null) { | 32 if (callback != null) { |
| 33 busy = true; | 33 busy = true; |
| 34 callback(!expanded, doneCallback); | 34 callback(!expanded, doneCallback); |
| 35 } else { | 35 } else { |
| 36 expanded = !expanded; | 36 expanded = !expanded; |
| 37 } | 37 } |
| 38 } | 38 } |
| 39 } | 39 } |
| OLD | NEW |