[Pkg-javascript-commits] [sockjs-client] 111/434: Cosmetic.

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:07 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 3e3d84343869eceef47da3d5a2166311dbecc0bc
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Thu Sep 1 17:20:28 2011 +0100

    Cosmetic.
---
 lib/trans-iframe.js        | 2 +-
 lib/trans-receiver-xhr.js  | 2 +-
 lib/trans-xhr-streaming.js | 4 +++-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/lib/trans-iframe.js b/lib/trans-iframe.js
index b68e07d..ffeb7cf 100644
--- a/lib/trans-iframe.js
+++ b/lib/trans-iframe.js
@@ -44,7 +44,7 @@ IframeTransport.prototype.doCleanup = function() {
                        iframeObj.cleanup();
                        iframeObj = null;
                    }, 100);
-        that.onmessage_cb  = that.iframeObj = null;
+        that.onmessage_cb = that.iframeObj = null;
     }
 };
 
diff --git a/lib/trans-receiver-xhr.js b/lib/trans-receiver-xhr.js
index 8b4bd1a..9420d51 100644
--- a/lib/trans-receiver-xhr.js
+++ b/lib/trans-receiver-xhr.js
@@ -29,7 +29,7 @@ var XhrReceiver = function(url, opts) {
             that.dispatchEvent(new SimpleEvent('close', {reason: reason}));
         }
     };
-    var createXhr = (opts.cors && window.XDomainRequest) ?
+    var createXhr = (opts.cors && _window.XDomainRequest) ?
                                     utils.createXDR : utils.createXHR;
     that.xhr_close = createXhr('POST', url, null, orsc);
 };
diff --git a/lib/trans-xhr-streaming.js b/lib/trans-xhr-streaming.js
index 3e4f17e..f1a8850 100644
--- a/lib/trans-xhr-streaming.js
+++ b/lib/trans-xhr-streaming.js
@@ -3,7 +3,9 @@ var XhrStreamingTransport = SockJS['xhr-streaming'] = function (ri, trans_url) {
     that.ri = ri;
     that.trans_url = trans_url;
     that.send_constructor(xdrSender);
-    that.poll = new Polling(ri, XhrReceiver, trans_url + '/xhr_streaming', {cors: true});
+    that.poll = new Polling(ri, XhrReceiver,
+                            trans_url + '/xhr_streaming',
+                            {cors: true});
 };
 
 // Inheritnace

-- 
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