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

Unified Diff: samples/clock/web/numbers.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/clock.dart ('k') | samples/solar/web/solar.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/clock/web/numbers.dart
diff --git a/samples/clock/web/numbers.dart b/samples/clock/web/numbers.dart
index c831da40b97ce8820df668710cdc12ed422be52a..6dc7ee6d9481c3cf98df053fbf6e22ff0d8b986f 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(() {
+ scheduleMicrotask(() {
var r = img.getBoundingClientRect();
double absx = r.left;
double absy = r.top;
« no previous file with comments | « samples/clock/web/clock.dart ('k') | samples/solar/web/solar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698