mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 05:53:43 +00:00
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:
committed by
Steve Howell
parent
9020f37141
commit
3df1097c95
@@ -1,3 +1,5 @@
|
||||
var Socket = (function () {
|
||||
|
||||
function Socket(url) {
|
||||
this.url = url;
|
||||
this._is_open = false;
|
||||
@@ -375,3 +377,6 @@ Socket.prototype = {
|
||||
this._save_localstorage_requests();
|
||||
}
|
||||
};
|
||||
|
||||
return Socket;
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user