[Pkg-javascript-commits] [sockjs-client] 278/434: Cosmetic - additional null-ness checks
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 ab4b4f96ac71fb72ffceef38a146be43c7470ba8
Author: Marek Majkowski <majek04 at gmail.com>
Date: Wed Jan 11 11:14:34 2012 +0000
Cosmetic - additional null-ness checks
---
lib/info.js | 1 -
lib/test-hooks.js | 2 ++
lib/trans-iframe-within.js | 3 ++-
tests/html/src/domtests.coffee | 2 ++
4 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/lib/info.js b/lib/info.js
index 7aacb59..711de6d 100644
--- a/lib/info.js
+++ b/lib/info.js
@@ -36,4 +36,3 @@ InfoReceiver.prototype.doXhr = function() {
var xhr_close = createXhr('GET', that.base_url + '/info' , null, orsc);
};
-utils.info = InfoReceiver;
diff --git a/lib/test-hooks.js b/lib/test-hooks.js
index 5c7f6dd..5211a05 100644
--- a/lib/test-hooks.js
+++ b/lib/test-hooks.js
@@ -6,3 +6,5 @@ SockJS.getUtils = function(){
SockJS.getIframeTransport = function(){
return IframeTransport;
};
+
+utils.info = InfoReceiver;
diff --git a/lib/trans-iframe-within.js b/lib/trans-iframe-within.js
index 4dbd8e5..5ed8f73 100644
--- a/lib/trans-iframe-within.js
+++ b/lib/trans-iframe-within.js
@@ -56,7 +56,8 @@ SockJS.bootstrap_iframe = function() {
facade._doSend(data);
break;
case 'c':
- facade._doCleanup();
+ if (facade)
+ facade._doCleanup();
facade = null;
break;
}
diff --git a/tests/html/src/domtests.coffee b/tests/html/src/domtests.coffee
index 74c7129..3dd3ccf 100644
--- a/tests/html/src/domtests.coffee
+++ b/tests/html/src/domtests.coffee
@@ -113,6 +113,8 @@ ajax_streaming_factory = (name) ->
test_wrong_url = (name, url, statuses) ->
+ if window.console and console.log
+ console.log(' [*] Connecting to wrong url ' + url)
expect(2)
x = new u[name]('GET', url, null)
x.onchunk = ->
--
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