[Pkg-javascript-commits] [sockjs-client] 200/350: Fix #175 allow 'interactive' value for needBody readyState
tonnerre at ancient-solutions.com
tonnerre at ancient-solutions.com
Fri Aug 5 01:04:21 UTC 2016
This is an automated email from the git hooks/post-receive script.
tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.
commit 3032cf508d0a1b13ea8b3ad892d5dc9a9fed5135
Author: Bryce Kahle <bkahle at gmail.com>
Date: Mon Oct 20 15:54:21 2014 -0400
Fix #175 allow 'interactive' value for needBody readyState
---
Changelog | 1 +
lib/main.js | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/Changelog b/Changelog
index 0651b35..c69199c 100644
--- a/Changelog
+++ b/Changelog
@@ -20,6 +20,7 @@
* Now works inside of Web Workers - #181
* Support EventSource / Server Sent Events outside of iframes - #201
* Rename protocols to transports - #65
+ * Allow transports which need the body to trigger on 'interactive' readyState - #175
0.3.4
diff --git a/lib/main.js b/lib/main.js
index 6f48855..1a42195 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -195,7 +195,9 @@ SockJS.prototype._connect = function() {
debug('attempt %s', Transport.transportName);
if (Transport.needBody) {
if (!global.document.body ||
- (typeof global.document.readyState !== 'undefined' && global.document.readyState !== 'complete')) {
+ (typeof global.document.readyState !== 'undefined' &&
+ global.document.readyState !== 'complete' &&
+ global.document.readyState !== 'interactive')) {
debug('waiting for body');
this._transports.unshift(Transport);
eventUtils.attachEvent('load', this._connect.bind(this));
--
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