| OLD | NEW |
| 1 part of view; | |
| 2 | |
| 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 4 // 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 |
| 5 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 6 | 4 |
| 7 /** | 5 /** |
| 8 * A View that is composed of child views. | 6 * A View that is composed of child views. |
| 9 */ | 7 */ |
| 10 class CompositeView extends View { | 8 class CompositeView extends View { |
| 11 | 9 |
| 12 List<View> childViews; | 10 List<View> childViews; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 } | 78 } |
| 81 | 79 |
| 82 void removeChild(View view) { | 80 void removeChild(View view) { |
| 83 childViews = childViews.filter(bool _(e) { return view != e; }); | 81 childViews = childViews.filter(bool _(e) { return view != e; }); |
| 84 // TODO(rnystrom): Container shouldn't be null. Remove this check. | 82 // TODO(rnystrom): Container shouldn't be null. Remove this check. |
| 85 if (container !== null) { | 83 if (container !== null) { |
| 86 view.node.remove(); | 84 view.node.remove(); |
| 87 } | 85 } |
| 88 } | 86 } |
| 89 } | 87 } |
| OLD | NEW |