[Pkg-javascript-commits] [sockjs-client] 429/434: Cosmetic - Use local copy of window object

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:30 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 a6c9bc6989b29653ebc9c4ed592043a6eeff4bf5
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Thu Nov 15 14:23:33 2012 +0000

    Cosmetic - Use local copy of window object
---
 lib/sockjs.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/sockjs.js b/lib/sockjs.js
index 3211fd7..6038fee 100644
--- a/lib/sockjs.js
+++ b/lib/sockjs.js
@@ -7,7 +7,7 @@
  */
 
 var SockJS = function(url, dep_protocols_whitelist, options) {
-    if (this === window) {
+    if (this === _window) {
         // makes `new` optional
         return new SockJS(url, dep_protocols_whitelist, options);
     }

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