Index: samples/swarm/SwarmViews.dart |
diff --git a/samples/swarm/SwarmViews.dart b/samples/swarm/SwarmViews.dart |
index cbbc10b1d4d908f502294b42bf64bef2ce7a64bf..d134172788d58aac1d98ae8b78e2cf259b18c698 100644 |
--- a/samples/swarm/SwarmViews.dart |
+++ b/samples/swarm/SwarmViews.dart |
@@ -169,20 +169,20 @@ class FrontView extends CompositeView { |
// Create the new story view. |
storyView = new StoryContentView(swarm, item); |
- window.setTimeout(() { |
+ Timer.run(() { |
_animateDataSourceToMinimized(); |
sliderMenu.addClass('hidden'); |
// Make the fancy sliding into the window animation. |
- window.setTimeout(() { |
+ Timer.run(() { |
storyView.addClass('hidden-story'); |
addChild(storyView); |
- window.setTimeout(() { |
+ Timer.run(() { |
storyView.removeClass('hidden-story'); |
- }, 0); |
+ }); |
headerView.endTransitionToStoryView(); |
- }, 0); |
- }, 0); |
+ }); |
+ }); |
} |
} |