[Pkg-javascript-commits] [sockjs-client] 302/434: Cosmetic: _window instead of window

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:21 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 d1ab32a4d507c0e44cf008bc9a8432b522837907
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Fri Jan 13 15:42:01 2012 +0000

    Cosmetic: _window instead of window
---
 lib/trans-receiver-htmlfile.js | 2 +-
 lib/trans-websocket.js         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/trans-receiver-htmlfile.js b/lib/trans-receiver-htmlfile.js
index be70ccd..f46f9a4 100644
--- a/lib/trans-receiver-htmlfile.js
+++ b/lib/trans-receiver-htmlfile.js
@@ -1,7 +1,7 @@
 var _is_ie_htmlfile_capable;
 var isIeHtmlfileCapable = function() {
     if (_is_ie_htmlfile_capable === undefined) {
-        if ('ActiveXObject' in window) {
+        if ('ActiveXObject' in _window) {
             try {
                 _is_ie_htmlfile_capable = !!new ActiveXObject('htmlfile');
             } catch (x) {}
diff --git a/lib/trans-websocket.js b/lib/trans-websocket.js
index 8d7f78f..6ad01df 100644
--- a/lib/trans-websocket.js
+++ b/lib/trans-websocket.js
@@ -8,7 +8,7 @@ var WebSocketTransport = SockJS.websocket = function(ri, trans_url) {
     }
     that.ri = ri;
     that.url = url;
-    var Constructor = window.WebSocket || window.MozWebSocket;
+    var Constructor = _window.WebSocket || _window.MozWebSocket;
 
     if(_document_guard.state >= DocumentGuard.beforeunload) {
         // Firefox has an interesting bug. If a websocket connection

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