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

Unified Diff: sky/sdk/example/game/lib/sprite_box.dart

Issue 1233673003: Fix bugs found by Dart analyzer (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: typo Created 5 years, 5 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
Index: sky/sdk/example/game/lib/sprite_box.dart
diff --git a/sky/sdk/example/game/lib/sprite_box.dart b/sky/sdk/example/game/lib/sprite_box.dart
index aa5d064e2ac05f2274e9d90c3ec8f91df36c9742..7770a8258a50e1afa9051743ddb8cccba4db4a3c 100644
--- a/sky/sdk/example/game/lib/sprite_box.dart
+++ b/sky/sdk/example/game/lib/sprite_box.dart
@@ -266,10 +266,8 @@ class SpriteBox extends RenderBox {
// Updates
- int _animationId = 0;
-
void _scheduleTick() {
- _animationId = scheduler.requestAnimationFrame(_tick);
+ scheduler.requestAnimationFrame(_tick);
}
void _tick(double timeStamp) {

Powered by Google App Engine
This is Rietveld 408576698