[Pkg-javascript-commits] [sockjs-client] 119/434: We need bool, not a websocket object.
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 a8b80ce377a1191f5d67d218957d93fd081ced82
Author: Marek Majkowski <majek04 at gmail.com>
Date: Mon Sep 5 16:42:34 2011 +0100
We need bool, not a websocket object.
---
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 0689043..813b724 100644
--- a/lib/trans-websocket.js
+++ b/lib/trans-websocket.js
@@ -33,5 +33,5 @@ WebSocketTransport.prototype.doCleanup = function() {
};
WebSocketTransport.enabled = function() {
- return (window.WebSocket || window.MozWebSocket);
+ return !!(window.WebSocket || window.MozWebSocket);
};
--
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