[Pkg-javascript-commits] [sockjs-client] 145/434: Utils.delay
Tonnerre Lombard
tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:10 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 c878d31fe46fd2e25417b19aedf65c33c0fbae06
Author: Marek Majkowski <majek04 at gmail.com>
Date: Mon Sep 12 10:18:13 2011 +0100
Utils.delay
---
lib/trans-sender.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/trans-sender.js b/lib/trans-sender.js
index 8a573e0..138871d 100644
--- a/lib/trans-sender.js
+++ b/lib/trans-sender.js
@@ -95,10 +95,10 @@ var jsonPGenericSender = function(url, payload, callback) {
iframe.onreadystatechange = iframe.onerror = iframe.onload = null;
// Opera mini doesn't like if we GC iframe
// immediately, thus this timeout.
- setTimeout(function() {
+ utils.delay(500, function() {
iframe.parentNode.removeChild(iframe);
iframe = null;
- }, 500);
+ });
area.value = null;
callback();
};
--
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