[Pkg-javascript-commits] [sockjs-client] 273/434: #36 It's possible to have empty options.info, during tests.
Tonnerre Lombard
tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:19 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 25271b4e471ff6fc0285c5abfca115a40ae65a13
Author: Marek Majkowski <majek04 at gmail.com>
Date: Mon Jan 9 17:46:16 2012 +0000
#36 It's possible to have empty options.info, during tests.
---
lib/trans-websocket.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/trans-websocket.js b/lib/trans-websocket.js
index dc1cb38..f1391f0 100644
--- a/lib/trans-websocket.js
+++ b/lib/trans-websocket.js
@@ -43,7 +43,7 @@ WebSocketTransport.prototype.doCleanup = function() {
}
};
-WebSocketTransport.enabled = function() {
+WebSocketTransport.enabled = function(options) {
return !!(window.WebSocket || window.MozWebSocket) &&
- this._options.info.websocket !== false;
+ (options.info && options.info.websocket !== false);
};
--
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