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