Index: samples/swarm/SwarmViews.dart |
diff --git a/samples/swarm/SwarmViews.dart b/samples/swarm/SwarmViews.dart |
index d134172788d58aac1d98ae8b78e2cf259b18c698..cbbc10b1d4d908f502294b42bf64bef2ce7a64bf 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); |
- Timer.run(() { |
+ window.setTimeout(() { |
_animateDataSourceToMinimized(); |
sliderMenu.addClass('hidden'); |
// Make the fancy sliding into the window animation. |
- Timer.run(() { |
+ window.setTimeout(() { |
storyView.addClass('hidden-story'); |
addChild(storyView); |
- Timer.run(() { |
+ window.setTimeout(() { |
storyView.removeClass('hidden-story'); |
- }); |
+ }, 0); |
headerView.endTransitionToStoryView(); |
- }); |
- }); |
+ }, 0); |
+ }, 0); |
} |
} |