[Pkg-javascript-commits] [sockjs-client] 286/434: Don't disable websockets during tests (when options.info are empty)

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 d0348f8d31f2400070455fe6bb059d20f3b02cec
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Wed Jan 11 16:26:01 2012 +0000

    Don't disable websockets during tests (when options.info are empty)
---
 lib/trans-websocket.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/trans-websocket.js b/lib/trans-websocket.js
index f1391f0..417c304 100644
--- a/lib/trans-websocket.js
+++ b/lib/trans-websocket.js
@@ -45,5 +45,5 @@ WebSocketTransport.prototype.doCleanup = function() {
 
 WebSocketTransport.enabled = function(options) {
     return !!(window.WebSocket || window.MozWebSocket) &&
-        (options.info && 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