Index: samples-dev/swarm/swarm_ui_lib/base/AnimationScheduler.dart |
diff --git a/samples-dev/swarm/swarm_ui_lib/base/AnimationScheduler.dart b/samples-dev/swarm/swarm_ui_lib/base/AnimationScheduler.dart |
index 71313e55e288450a10af113dfca6c381b586e7e0..577d03531ec5e3eeb782d2fa835951713b1403fa 100644 |
--- a/samples-dev/swarm/swarm_ui_lib/base/AnimationScheduler.dart |
+++ b/samples-dev/swarm/swarm_ui_lib/base/AnimationScheduler.dart |
@@ -44,8 +44,7 @@ class AnimationScheduler { |
CssStyleDeclaration _safariHackStyle; |
int _frameCount = 0; |
- AnimationScheduler() |
- : _callbacks = new List<CallbackData>() { |
+ AnimationScheduler() : _callbacks = new List<CallbackData>() { |
if (_isMobileSafari) { |
// TODO(jacobr): find a better workaround for the issue that 3d transforms |
// sometimes don't render on iOS without forcing a layout. |
@@ -72,8 +71,7 @@ class AnimationScheduler { |
* pending callback. |
*/ |
int requestAnimationFrame(AnimationCallback callback, |
- [Element element = null, |
- num minTime = null]) { |
+ [Element element = null, num minTime = null]) { |
final callbackData = new CallbackData(callback, minTime); |
_requestAnimationFrameHelper(callbackData); |
return callbackData.id; |
@@ -85,8 +83,9 @@ class AnimationScheduler { |
} |
void _setupInterval() { |
- window.requestAnimationFrame( |
- (num ignored) { _step(); }); |
+ window.requestAnimationFrame((num ignored) { |
+ _step(); |
+ }); |
} |
void _step() { |