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

Unified Diff: samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart

Issue 11412086: Make 'where' lazy. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Rebase 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/base/AnimationScheduler.dart
diff --git a/samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart b/samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart
index f7bb12ea70b6735c068ed09b83f28e551ce600fc..473f2a325dc58d6e2c62213ccdb00e73b2e03533 100644
--- a/samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart
+++ b/samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart
@@ -63,7 +63,7 @@ class AnimationScheduler {
* frames.
*/
void cancelRequestAnimationFrame(int id) {
- _callbacks = _callbacks.where((CallbackData e) => e.id != id);
+ _callbacks = _callbacks.where((CallbackData e) => e.id != id).toList();
Lasse Reichstein Nielsen 2012/11/20 11:44:57 We want a mutating method on Collection: removeAll
floitsch 2012/11/28 13:49:38 Agreed. Not sure where, but it is a common task.
}
/**

Powered by Google App Engine
This is Rietveld 408576698