From 23f1bb334569e057b1f17d0270af968c36242ce4 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 21 Feb 2016 10:07:50 +0100 Subject: [PATCH] Auto fixes --- Chart/Chart.js | 2 +- Socket/Client/Client.js | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Chart/Chart.js b/Chart/Chart.js index 3b1764c..9498b16 100644 --- a/Chart/Chart.js +++ b/Chart/Chart.js @@ -500,7 +500,7 @@ text: { title: false, subtitle: false, - footer: false, + footer: false }, legend: false }; diff --git a/Socket/Client/Client.js b/Socket/Client/Client.js index a5e6e60..bb687e4 100644 --- a/Socket/Client/Client.js +++ b/Socket/Client/Client.js @@ -1,12 +1,11 @@ (function (jsOMS, undefined) { - jsOMS.Client = function () { - this.port = 80; - this.ip = '127.0.0.1'; - this.protocol = ''; + jsOMS.Client = function (ip, port, protocol) { + this.port = port; + this.ip = ip; + this.protocol = protocol; this.connection = null; this.messages = []; }; - jsOMS.Client.prototype.setMessage = function(id, callback) { this.messages[id] = callback; };