JS code style fixes
This commit is contained in:
parent
c641a43f38
commit
d0196914ff
|
|
@ -46,10 +46,10 @@
|
|||
xhr.send(null);
|
||||
}
|
||||
|
||||
this.onopen = function () { };
|
||||
this.onmessage = function () { };
|
||||
this.onerror = function (event) { };
|
||||
this.send = function (data) {
|
||||
sock.onopen = function () { };
|
||||
sock.onmessage = function () { };
|
||||
sock.onerror = function (event) { };
|
||||
sock.send = function (data) {
|
||||
if (!sock.connectionId) {
|
||||
throw "Not connected";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,10 +34,10 @@
|
|||
});
|
||||
}
|
||||
|
||||
this.onopen = function () { };
|
||||
this.onmessage = function () { };
|
||||
this.onerror = function (event) { };
|
||||
this.send = function (data) {
|
||||
sock.onopen = function () { };
|
||||
sock.onmessage = function () { };
|
||||
sock.onerror = function (event) { };
|
||||
sock.send = function (data) {
|
||||
if (!sock.connectionId) {
|
||||
throw "Not connected";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue