[Pkg-javascript-commits] [sockjs-client] 239/434: Actually, timeout of 0 works as well as 10.
Tonnerre Lombard
tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:16 UTC 2014
This is an automated email from the git hooks/post-receive script.
tonnerre-guest pushed a commit to branch master
in repository sockjs-client.
commit c96c2762c1e2a9e5fa98e11c72a1cda8ff5b64ec
Author: Marek Majkowski <majek04 at gmail.com>
Date: Thu Dec 1 14:24:36 2011 +0000
Actually, timeout of 0 works as well as 10.
For chrome and onbeforeunload event, that is.
---
lib/dom.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/dom.js b/lib/dom.js
index bb6bf63..ee00154 100644
--- a/lib/dom.js
+++ b/lib/dom.js
@@ -200,7 +200,7 @@ utils.createIframe = function (iframe_url, error_callback) {
setTimeout(function() {
iframe.parentNode.removeChild(iframe);
iframe = null;
- }, 10);
+ }, 0);
utils.detachEvent('unload', cleanup);
}
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git
More information about the Pkg-javascript-commits
mailing list