socket: Wrap module in an anonymous function call

This is so we can have some class variables.

(imported from commit 6311444bb2739daebc6c5da2b7ea7eabdd88689d)
This commit is contained in:
Zev Benjamin
2014-01-30 14:33:22 -05:00
committed by Steve Howell
parent 9020f37141
commit 3df1097c95

View File

@@ -1,3 +1,5 @@
var Socket = (function () {
function Socket(url) { function Socket(url) {
this.url = url; this.url = url;
this._is_open = false; this._is_open = false;
@@ -375,3 +377,6 @@ Socket.prototype = {
this._save_localstorage_requests(); this._save_localstorage_requests();
} }
}; };
return Socket;
}());