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

Unified Diff: samples/clock/web/numbers.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/clock/web/numbers.dart
diff --git a/samples/clock/web/numbers.dart b/samples/clock/web/numbers.dart
index 36007a96731e845187553c7c0e5377a47b8dbb0f..5088f83281832da70dbac9ff4edf46ce829f9969 100644
--- a/samples/clock/web/numbers.dart
+++ b/samples/clock/web/numbers.dart
@@ -43,7 +43,7 @@ class ClockNumber {
if (pixels != null) {
if ((pixels[y][x] != 0) && (px[y][x] == 0)) {
- window.setImmediate(() {
+ window.immediate.then((_) {
var r = img.getBoundingClientRect();
double absx = r.left;
double absy = r.top;

Powered by Google App Engine
This is Rietveld 408576698