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

Unified Diff: samples/clock/balls.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months 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
« no previous file with comments | « samples/chat/dart_client/chat.dart ('k') | samples/clock/clock.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/clock/balls.dart
diff --git a/samples/clock/balls.dart b/samples/clock/balls.dart
index d9816f00d5a9d3872c2ea8575551a16cd25d04da..d497c6dcd2cf1730e1e44d395e48225367bf2efd 100644
--- a/samples/clock/balls.dart
+++ b/samples/clock/balls.dart
@@ -46,7 +46,7 @@ class Balls {
lastTime = now;
// incrementally move each ball, removing balls that are offscreen
- balls = balls.filter((ball) => ball.tick(delta));
+ balls = balls.where((ball) => ball.tick(delta)).toList();
collideBalls(delta);
}
« no previous file with comments | « samples/chat/dart_client/chat.dart ('k') | samples/clock/clock.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698