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

Unified Diff: samples/swipe/web/swipe.dart

Issue 12218131: Combine window.setTimeout/setInterval with Timer and Timer.repeating. Also (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
Index: samples/swipe/web/swipe.dart
diff --git a/samples/swipe/web/swipe.dart b/samples/swipe/web/swipe.dart
index 75622c7fbfa4dc603b4767b9578fa977cad7af40..f4c150f1e2ceeaae996ab919a5e8b07011676428 100644
--- a/samples/swipe/web/swipe.dart
+++ b/samples/swipe/web/swipe.dart
@@ -73,7 +73,7 @@ void initialize3D() {
num childCount = target.children.length;
- window.setImmediate(() {
+ window.immediate.then((_) {
num width = query("#target").clientWidth;
figureWidth = (width / 2) ~/ tan(PI / childCount);

Powered by Google App Engine
This is Rietveld 408576698