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

Unified Diff: samples/swarm/SwarmViews.dart

Issue 12253011: Reapply remove setInterval. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
« no previous file with comments | « samples/swarm/App.dart ('k') | samples/swarm/Views.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ });
+ });
}
}
« no previous file with comments | « samples/swarm/App.dart ('k') | samples/swarm/Views.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698