Permalink
Browse files

use `var` in front of `SockJS = ` so that SockJS doesn't leak out whe…

…n put into a closure
  • Loading branch information...
1 parent a67f426 commit a88cf7da769f7a2955ba367de8bd7ea0afae800c @substack committed Jun 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/index.js
View
@@ -1,5 +1,5 @@
// Public object
-SockJS = (function(){
+var SockJS = (function(){
var _document = document;
var _window = window;
var utils = {};

0 comments on commit a88cf7d

Please sign in to comment.