Permalink
Browse files

Address PR #340 comments.

  • Loading branch information...
1 parent 86d2869 commit e9fbb217a451836bdfd60bf30e8c586859ace8be @ochameau ochameau committed Feb 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/api-utils/lib/window-utils.js
@@ -195,10 +195,10 @@ function createHiddenXULFrame() {
if (window.document.readyState != "complete") {
window.addEventListener("load", function onload() {
window.removeEventListener("load", onload, false);
+ // We recurse with same arguments, when the window is ready
promise(deliver);
}, false);
return;
- return require("timer").setTimeout(promise, 1000, deliver);
}
let document = window.document;

0 comments on commit e9fbb21

Please sign in to comment.