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 c5292905f7e9fb2dfa9b9526cd0d9fce1f896949..9128dc4e8d7d55d17be84fe8e20b4466456d9474 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') { |
- Timer.run(f); |
+ window.setTimeout(f, 0); |
} else { |
// TODO(jacobr): give this event a named property. |
window.onContentLoaded.listen((Event e) { f(); }); |