[Pkg-javascript-commits] [sockjs-client] 120/434: In opera (where xhr doesn't do cors), correctly pass errors back from chunking detection (close events).
Tonnerre Lombard
tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:08 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 0d49cfb674b337071103472815ac460243d0f175
Author: Marek Majkowski <majek04 at gmail.com>
Date: Mon Sep 5 16:43:11 2011 +0100
In opera (where xhr doesn't do cors), correctly pass errors back from chunking detection (close events).
---
lib/trans-iframe.js | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/lib/trans-iframe.js b/lib/trans-iframe.js
index 07b2136..afde859 100644
--- a/lib/trans-iframe.js
+++ b/lib/trans-iframe.js
@@ -41,12 +41,8 @@ IframeTransport.prototype.doCleanup = function() {
that.postMessage('c');
}
} catch (x) {}
- var iframeObj = that.iframeObj;
- // Give the iframe some time for cleanup.
- setTimeout(function() {
- iframeObj.cleanup();
- iframeObj = null;
- }, 100);
+ that.iframeObj.cleanup();
+ that.iframeObj = null;
that.onmessage_cb = that.iframeObj = null;
}
};
--
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