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

Unified Diff: samples/swarm/swarm_ui_lib/view/CompositeView.dart

Issue 11412086: Make 'where' lazy. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: FilteredIterable/Iterator -> WhereIterable/Iterator. Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: samples/swarm/swarm_ui_lib/view/CompositeView.dart
diff --git a/samples/swarm/swarm_ui_lib/view/CompositeView.dart b/samples/swarm/swarm_ui_lib/view/CompositeView.dart
index ace7eff89bb0dde9038f05323f5e13f26dd88f38..9546f9d3093af5248b882b0fc3ae191fd3bc146c 100644
--- a/samples/swarm/swarm_ui_lib/view/CompositeView.dart
+++ b/samples/swarm/swarm_ui_lib/view/CompositeView.dart
@@ -78,7 +78,7 @@ class CompositeView extends View {
}
void removeChild(View view) {
- childViews = childViews.where(bool _(e) { return view != e; });
+ childViews = childViews.where(bool _(e) { return view != e; }).toList();
// TODO(rnystrom): Container shouldn't be null. Remove this check.
if (container != null) {
view.node.remove();

Powered by Google App Engine
This is Rietveld 408576698