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

Unified Diff: samples/swarm/swarm_ui_lib/base/DomWrapper.dart

Issue 12253011: Reapply remove setInterval. (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
« no previous file with comments | « samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart ('k') | samples/swarm/swarm_ui_lib/base/base.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/swarm_ui_lib/base/DomWrapper.dart
diff --git a/samples/swarm/swarm_ui_lib/base/DomWrapper.dart b/samples/swarm/swarm_ui_lib/base/DomWrapper.dart
index 9128dc4e8d7d55d17be84fe8e20b4466456d9474..c5292905f7e9fb2dfa9b9526cd0d9fce1f896949 100644
--- a/samples/swarm/swarm_ui_lib/base/DomWrapper.dart
+++ b/samples/swarm/swarm_ui_lib/base/DomWrapper.dart
@@ -11,7 +11,7 @@ class Dom {
static void ready(void f()) {
if (document.readyState == 'interactive' ||
document.readyState == 'complete') {
- window.setTimeout(f, 0);
+ Timer.run(f);
} else {
// TODO(jacobr): give this event a named property.
window.onContentLoaded.listen((Event e) { f(); });
« no previous file with comments | « samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart ('k') | samples/swarm/swarm_ui_lib/base/base.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698