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

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

Issue 27441002: Removing setImmediate and hiding WindowTimers interface (take 2) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: The fix Created 7 years, 2 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 8526edbc06e1574ca6cdc32d6a83633987aa609b..b413d6492c9008d670ca455e0d685af71d84d25c 100644
--- a/samples/swipe/web/swipe.dart
+++ b/samples/swipe/web/swipe.dart
@@ -74,7 +74,7 @@ void initialize3D() {
num childCount = target.children.length;
- window.setImmediate(() {
+ scheduleMicrotask(() {
num width = query("#target").client.width;
figureWidth = (width / 2) ~/ tan(PI / childCount);
« no previous file with comments | « samples/swarm/test/swarm_ui_lib/layout/grid_layout_demo.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698