jsHint inspection fixes

This commit is contained in:
Dennis Eichhorn 2016-07-03 16:34:59 +02:00
parent acf6632fa5
commit d59e9cccf7
26 changed files with 54 additions and 6 deletions

View File

@ -9,6 +9,8 @@
*/
(function (jsOMS)
{
"use strict";
jsOMS.Autoloader.defineNamespace('jsOMS.Account');
/**

View File

@ -9,6 +9,8 @@
*/
(function (jsOMS)
{
"use strict";
jsOMS.Autoloader.defineNamespace('jsOMS.Account');
jsOMS.Account.AccountType = Object.freeze({

View File

@ -9,6 +9,8 @@
*/
(function (jsOMS)
{
"use strict";
jsOMS.Autoloader.defineNamespace('jsOMS.Auth');
/**

4
Chart/Chart.js vendored
View File

@ -1,5 +1,7 @@
(function (jsOMS)
{
"use strict";
jsOMS.Chart = function (id)
{
this.chartId = id;
@ -226,7 +228,7 @@
{
return t[id];
});
})
});
}
};

View File

@ -1,4 +1,6 @@
(function (jsOMS) {
"use strict";
jsOMS.Chart.Legend = function () {
this.position = {x: 0, y: 0};
this.relative = true;

View File

@ -1,5 +1,7 @@
(function (jsOMS)
{
"use strict";
jsOMS.Chart.ColumnChart = function (id)
{
this.chart = new jsOMS.Chart(id);

View File

@ -1,5 +1,7 @@
(function (jsOMS)
{
"use strict";
jsOMS.Chart.LineChart = function (id)
{
this.chart = new jsOMS.Chart(id);

View File

@ -1,5 +1,7 @@
(function (jsOMS)
{
"use strict";
jsOMS.Chart.PieChart = function (id)
{
this.chart = new jsOMS.Chart(id);
@ -71,7 +73,7 @@
.sort(null)
.value(function (d)
{
return d.value
return d.value;
});
dataPoint = svg.selectAll(".dataPoint").data(this.chart.dataset, function (c)

View File

@ -1,4 +1,6 @@
(function (jsOMS) {
"use strict";
jsOMS.Chart.TextElement = function() {
};
}(window.jsOMS = window.jsOMS || {}));

View File

@ -1,4 +1,6 @@
(function (jsOMS) {
"use strict";
jsOMS.Autoloader.defineNamespace('jsOMS.DataStorage');
// TODO: create comments

View File

@ -9,6 +9,8 @@
*/
(function (jsOMS)
{
"use strict";
jsOMS.Autoloader.defineNamespace('jsOMS.DataStorage');
/**

View File

@ -9,6 +9,8 @@
*/
(function (jsOMS)
{
"use strict";
jsOMS.Autoloader.defineNamespace('jsOMS.DataStorage');
/**

View File

@ -1,4 +1,6 @@
(function (jsOMS) {
"use strict";
jsOMS.Autoloader.defineNamespace('jsOMS.DataStorage');
jsOMS.DataStorage.StorageManager = function ()

View File

@ -1,4 +1,6 @@
(function (jsOMS) {
"use strict";
jsOMS.Autoloader.defineNamespace('jsOMS.Dispatcher');
jsOMS.Dispatcher.Dispatcher = function ()

View File

@ -24,7 +24,7 @@
for (let i = 0; i < count; i++) {
sum1 += (y[i] - meanY) * (x[i] - meanX);
sum2 += (x[i] - meanX) ** 2;
sum2 += Math.pow(x[i] - meanX, 2);
}
b1 = sum1 / sum2;

View File

@ -74,5 +74,5 @@
} else {
console.log('does not exist');
}
}
};
}(window.jsOMS = window.jsOMS || {}));

View File

@ -1,4 +1,6 @@
(function (jsOMS) {
"use strict";
jsOMS.Account = function () {
this.login = '';
this.password = '';

View File

@ -9,6 +9,8 @@
*/
(function (jsOMS)
{
"use strict";
jsOMS.Autoloader.defineNamespace('jsOMS.Module');
/**

View File

@ -9,6 +9,8 @@
*/
(function (jsOMS)
{
"use strict";
jsOMS.Autoloader.defineNamespace('jsOMS.Module');
/**

View File

@ -1,4 +1,6 @@
(function (jsOMS) {
"use strict";
jsOMS.Autoloader.defineNamespace('jsOMS.Route');
// TODO: create comments

View File

@ -1,4 +1,6 @@
(function (jsOMS) {
"use strict";
jsOMS.Client = function (ip, port, protocol) {
this.port = port;
this.ip = ip;
@ -30,7 +32,7 @@
var msg = JSON.parse(event.data);
self.messages[msg.type](msg);
}
};
};
jsOMS.Client.prototype.send = function(msg) {
@ -39,5 +41,5 @@
jsOMS.Client.prototype.close = function() {
this.connection.close();
}
};
}(window.jsOMS = window.jsOMS || {}));

View File

@ -9,6 +9,8 @@
*/
(function (jsOMS)
{
"use strict";
jsOMS.Autoloader.defineNamespace('jsOMS.UI');
/**

View File

@ -9,6 +9,8 @@
*/
(function (jsOMS)
{
"use strict";
jsOMS.Autoloader.defineNamespace('jsOMS.UI');
/**

View File

@ -1,4 +1,6 @@
(function (jsOMS) {
"use strict";
jsOMS.Validation = function () {
};

View File

@ -1,4 +1,6 @@
(function (jsOMS) {
"use strict";
jsOMS.TableView = function () {
this.table = null;
};

View File

@ -1,4 +1,6 @@
(function (jsOMS) {
"use strict";
jsOMS.ViewAbstract = function ()
{
this.element = null;