Permalink
Browse files

Cosmetic - Use local copy of window object

  • Loading branch information...
1 parent 5ab8769 commit a6c9bc6989b29653ebc9c4ed592043a6eeff4bf5 @majek majek committed Nov 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sockjs.js
View
@@ -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);
}

0 comments on commit a6c9bc6

Please sign in to comment.