JS code style fixes

This commit is contained in:
DamianEdwards 2016-10-05 14:50:50 -07:00
parent c641a43f38
commit d0196914ff
2 changed files with 8 additions and 8 deletions

View File

@ -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";
} }

View File

@ -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";
} }