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

Unified Diff: samples/solar3d/web/solar.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/solar3d/web/solar.dart
diff --git a/samples/solar3d/web/solar.dart b/samples/solar3d/web/solar.dart
index 1f828f9df20d0b047494a8830a1526508e5bcf43..ec47de6756bda977fa038b91290ee43f88b39758 100644
--- a/samples/solar3d/web/solar.dart
+++ b/samples/solar3d/web/solar.dart
@@ -60,7 +60,7 @@ class Solar3DApplication {
skyBox = new Skybox(glContext);
orbitPath = new OrbitPath(glContext);
// Measure the canvas element.
- window.setImmediate(() {
+ window.immediate.then((_) {
canvas.width = (canvas.parent as Element).clientWidth;
canvas.height = 400;

Powered by Google App Engine
This is Rietveld 408576698