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

Unified Diff: samples/solar/web/solar.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
« no previous file with comments | « samples/clock/web/numbers.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/solar/web/solar.dart
diff --git a/samples/solar/web/solar.dart b/samples/solar/web/solar.dart
index a2a7d5568efcc8e9f9035997144e5b6303ab0594..24d97b9097e88b3659869e85ec901ac7135845d4 100644
--- a/samples/solar/web/solar.dart
+++ b/samples/solar/web/solar.dart
@@ -8,12 +8,13 @@
library solar;
+import 'dart:async';
import 'dart:html';
import 'dart:math';
void main() {
CanvasElement canvas = query("#area");
- window.setImmediate(new SolarSystem(canvas).start);
+ scheduleMicrotask(new SolarSystem(canvas).start);
}
Element notes = query("#fps");
« no previous file with comments | « samples/clock/web/numbers.dart ('k') | samples/swarm/Views.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698