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

Unified Diff: samples/solar/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/solar/web/solar.dart
diff --git a/samples/solar/web/solar.dart b/samples/solar/web/solar.dart
index 17c3514b74c4354f1f63114be65f3d3af378aa3f..44f813d962c2be5814cc6fb50e3b7ce15e095ef4 100644
--- a/samples/solar/web/solar.dart
+++ b/samples/solar/web/solar.dart
@@ -68,7 +68,7 @@ class SolarSystem {
start() {
// Measure the canvas element.
- window.setImmediate(() {
+ window.immediate.then((_) {
_width = (canvas.parent as Element).clientWidth;
_height = (canvas.parent as Element).clientHeight;

Powered by Google App Engine
This is Rietveld 408576698