Remove whitespace from end of line

This commit is contained in:
Dennis Eichhorn 2018-01-15 18:53:45 +01:00
parent 410f088149
commit 576832b4e4
69 changed files with 192 additions and 192 deletions

View File

@ -323,8 +323,8 @@
} }
let lines = text.split('\n'), let lines = text.split('\n'),
line = '', line = '',
lineFirstChar = '', lineFirstChar = '',
lineSecondChar = '', lineSecondChar = '',
lineLength = 0, lineLength = 0,
result = [], result = [],

View File

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

View File

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

View File

@ -16,7 +16,7 @@
/** /**
* requestAnimationFrame wrapper * requestAnimationFrame wrapper
* *
* @return {function} * @return {function}
* *
* @method * @method
* *

View File

@ -33,7 +33,7 @@
/** /**
* Get particle radius * Get particle radius
* *
* @return {int} * @return {int}
* *
* @method * @method
* *
@ -50,7 +50,7 @@
* @param {int} posX Position x * @param {int} posX Position x
* @param {int} posY Position y * @param {int} posY Position y
* *
* @return {void} * @return {void}
* *
* @method * @method
* *
@ -65,7 +65,7 @@
/** /**
* Get position * Get position
* *
* @return {Object} * @return {Object}
* *
* @method * @method
* *
@ -82,7 +82,7 @@
* @param {float} velX Velocity x * @param {float} velX Velocity x
* @param {float} velY Velocity y * @param {float} velY Velocity y
* *
* @return {void} * @return {void}
* *
* @method * @method
* *
@ -97,7 +97,7 @@
/** /**
* Get velocity * Get velocity
* *
* @return {Object} * @return {Object}
* *
* @method * @method
* *
@ -113,7 +113,7 @@
* *
* @param {object} ctx Canvas * @param {object} ctx Canvas
* *
* @return {void} * @return {void}
* *
* @method * @method
* *

View File

@ -25,7 +25,7 @@
{ {
this.canvas = canvas; this.canvas = canvas;
this.ctx = canvas.getContext('2d'); this.ctx = canvas.getContext('2d');
/** global: screen */ /** global: screen */
this.width = screen.width; this.width = screen.width;
this.height = screen.height; this.height = screen.height;
@ -53,7 +53,7 @@
* *
* @param {object} self Object reference for self invoke * @param {object} self Object reference for self invoke
* *
* @return {void} * @return {void}
* *
* @method * @method
* *
@ -80,7 +80,7 @@
/** /**
* Invalidate/clean canvas * Invalidate/clean canvas
* *
* @return {void} * @return {void}
* *
* @method * @method
* *
@ -94,7 +94,7 @@
/** /**
* Update particle * Update particle
* *
* @return {void} * @return {void}
* *
* @method * @method
* *
@ -143,10 +143,10 @@
/** /**
* Handle distance between particles * Handle distance between particles
* *
* @param {Particle} p1 Particle * @param {Particle} p1 Particle
* @param {Particle} p2 Particle * @param {Particle} p2 Particle
* *
* @return {void} * @return {void}
* *
* @method * @method
* *

View File

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

View File

@ -1,9 +1,9 @@
/** /**
* Autoloader. * Autoloader.
* *
* The autoloader is responsible for defining namespaces and dynamically loading javascript * The autoloader is responsible for defining namespaces and dynamically loading javascript
* files that are not yet included. The intention is to provide a similar functionality as * files that are not yet included. The intention is to provide a similar functionality as
* include, import etc. Contrary to it's name the autoloader is not able to truely autoload * include, import etc. Contrary to it's name the autoloader is not able to truely autoload
* referenced classes. * referenced classes.
* *
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn

View File

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

View File

@ -1,7 +1,7 @@
(function (jsOMS) (function (jsOMS)
{ {
"use strict"; "use strict";
jsOMS.Chart.BarChart = function (id) jsOMS.Chart.BarChart = function (id)
{ {
this.chart = new jsOMS.Chart.ChartAbstract(id); this.chart = new jsOMS.Chart.ChartAbstract(id);
@ -111,13 +111,13 @@
this.chart.drawGrid(svg, xGrid, yGrid); this.chart.drawGrid(svg, xGrid, yGrid);
let dataPoint = null, let dataPoint = null,
dataPointEnter = null, dataPointEnter = null,
temp = this.drawData(svg, x, y, dataPointEnter, dataPoint); temp = this.drawData(svg, x, y, dataPointEnter, dataPoint);
dataPointEnter = temp[0]; dataPointEnter = temp[0];
dataPoint = temp[1]; dataPoint = temp[1];
this.chart.drawMarker(svg, x, y, dataPointEnter, dataPoint); this.chart.drawMarker(svg, x, y, dataPointEnter, dataPoint);
this.chart.drawLegend(svg, dataPointEnter, dataPoint); this.chart.drawLegend(svg, dataPointEnter, dataPoint);
this.chart.drawText(svg); this.chart.drawText(svg);

View File

@ -1,7 +1,7 @@
(function (jsOMS) (function (jsOMS)
{ {
"use strict"; "use strict";
jsOMS.Chart.CalendarChart = function (id) jsOMS.Chart.CalendarChart = function (id)
{ {
this.chart = new jsOMS.Chart.ChartAbstract(id); this.chart = new jsOMS.Chart.ChartAbstract(id);
@ -42,7 +42,7 @@
.attr("height", this.chart.dimension.height) .attr("height", this.chart.dimension.height)
.attr("class", "RdYlGn") .attr("class", "RdYlGn")
.append("g") .append("g")
.attr("transform", "translate(" .attr("transform", "translate("
+ ((this.chart.dimension.width - this.chart.cellSize * 53) / 2) + ((this.chart.dimension.width - this.chart.cellSize * 53) / 2)
+ "," + (this.chart.dimension.height - this.chart.cellSize * 7 - 1) + ")"); + "," + (this.chart.dimension.height - this.chart.cellSize * 7 - 1) + ")");
@ -81,7 +81,7 @@
}); });
// todo: fix the following data filter etc. this is way to much work and slow // todo: fix the following data filter etc. this is way to much work and slow
rect.filter(function(d) { rect.filter(function(d) {
let year = d.split('-')[0], let year = d.split('-')[0],
length = self.chart.dataset.length; length = self.chart.dataset.length;
@ -101,12 +101,12 @@
return false; return false;
} }
return false; return false;
}) })
.attr("class", function(d) { .attr("class", function(d) {
let year = d.split('-')[0], let year = d.split('-')[0],
length = self.chart.dataset.length; length = self.chart.dataset.length;
for(let i = 0; i < length; i++) { for(let i = 0; i < length; i++) {
if(self.chart.dataset[i].name != year) { if(self.chart.dataset[i].name != year) {
continue; continue;
@ -116,7 +116,7 @@
for(let j = 0; j < dataLength; j++) { for(let j = 0; j < dataLength; j++) {
if(self.chart.dataset[i].points[j].x === d) { if(self.chart.dataset[i].points[j].x === d) {
return "day " + self.chart.color(self.chart.dataset[i].points[j].y); return "day " + self.chart.color(self.chart.dataset[i].points[j].y);
} }
} }
@ -127,7 +127,7 @@
.text(function(d) { .text(function(d) {
let year = d.split('-')[0], let year = d.split('-')[0],
length = self.chart.dataset.length; length = self.chart.dataset.length;
for(let i = 0; i < length; i++) { for(let i = 0; i < length; i++) {
if(self.chart.dataset[i].name != year) { if(self.chart.dataset[i].name != year) {
continue; continue;

View File

@ -1,7 +1,7 @@
(function (jsOMS) (function (jsOMS)
{ {
"use strict"; "use strict";
jsOMS.Chart.CandlestickChart = function (id) jsOMS.Chart.CandlestickChart = function (id)
{ {
this.chart = new jsOMS.Chart.ChartAbstract(id); this.chart = new jsOMS.Chart.ChartAbstract(id);
@ -102,7 +102,7 @@
.data(this.chart.dataset[0].points) .data(this.chart.dataset[0].points)
.enter().append("svg:rect") .enter().append("svg:rect")
.attr("x", function(d) { return x(d.x)-0.5*mm/2; }) .attr("x", function(d) { return x(d.x)-0.5*mm/2; })
.attr("y", function(d) {return y(Math.max(d.open, d.close));}) .attr("y", function(d) {return y(Math.max(d.open, d.close));})
.attr("height", function(d) { return Math.max(1, y(Math.min(d.open, d.close))-y(Math.max(d.open, d.close)));}) .attr("height", function(d) { return Math.max(1, y(Math.min(d.open, d.close))-y(Math.max(d.open, d.close)));})
.attr("width", function(d) { return 0.5 * mm; }) .attr("width", function(d) { return 0.5 * mm; })
.attr("fill",function(d) { return d.open > d.close ? "red" : "green" ;}); .attr("fill",function(d) { return d.open > d.close ? "red" : "green" ;});
@ -110,17 +110,17 @@
let datapoint = svg.selectAll("rect") let datapoint = svg.selectAll("rect")
.data(this.chart.dataset[0].points) .data(this.chart.dataset[0].points)
.enter(); .enter();
datapoint.append("svg:rect") datapoint.append("svg:rect")
.attr("x", function(d) { return x(d.x)-0.25*mm/2; }) .attr("x", function(d) { return x(d.x)-0.25*mm/2; })
.attr("y", function(d) {return y(d.open);}) .attr("y", function(d) {return y(d.open);})
.attr("height", function(d) { return 1;}) .attr("height", function(d) { return 1;})
.attr("width", function(d) { return 0.25 * mm/2; }) .attr("width", function(d) { return 0.25 * mm/2; })
.attr("fill",function(d) { return d.open > d.close ? "red" : "green" ;}); .attr("fill",function(d) { return d.open > d.close ? "red" : "green" ;});
datapoint.append("svg:rect") datapoint.append("svg:rect")
.attr("x", function(d) { return x(d.x); }) .attr("x", function(d) { return x(d.x); })
.attr("y", function(d) {return y(d.close);}) .attr("y", function(d) {return y(d.close);})
.attr("height", function(d) { return 1;}) .attr("height", function(d) { return 1;})
.attr("width", function(d) { return 0.25 * mm/2; }) .attr("width", function(d) { return 0.25 * mm/2; })
.attr("fill",function(d) { return d.open > d.close ? "red" : "green" ;}); .attr("fill",function(d) { return d.open > d.close ? "red" : "green" ;});
@ -131,7 +131,7 @@
.enter().append("svg:line") .enter().append("svg:line")
.attr("class", "stem") .attr("class", "stem")
.attr("x1", function(d) { return x(d.x);}) .attr("x1", function(d) { return x(d.x);})
.attr("x2", function(d) { return x(d.x);}) .attr("x2", function(d) { return x(d.x);})
.attr("y1", function(d) { return y(d.y);}) .attr("y1", function(d) { return y(d.y);})
.attr("y2", function(d) { return y(d.y0); }) .attr("y2", function(d) { return y(d.y0); })
.attr("stroke", function(d){ return d.open > d.close ? "red" : "green"; }); .attr("stroke", function(d){ return d.open > d.close ? "red" : "green"; });

View File

@ -4,7 +4,7 @@
/** @namespace jsOMS.Chart */ /** @namespace jsOMS.Chart */
jsOMS.Autoloader.defineNamespace('jsOMS.Chart'); jsOMS.Autoloader.defineNamespace('jsOMS.Chart');
jsOMS.Chart.ChartAbstract = function (id) jsOMS.Chart.ChartAbstract = function (id)
{ {
/** global: d3 */ /** global: d3 */

View File

@ -1,7 +1,7 @@
(function (jsOMS) (function (jsOMS)
{ {
"use strict"; "use strict";
jsOMS.Chart.ColumnChart = function (id) jsOMS.Chart.ColumnChart = function (id)
{ {
this.chart = new jsOMS.Chart.ChartAbstract(id); this.chart = new jsOMS.Chart.ChartAbstract(id);
@ -111,7 +111,7 @@
this.chart.drawGrid(svg, xGrid, yGrid); this.chart.drawGrid(svg, xGrid, yGrid);
let dataPoint = null, let dataPoint = null,
dataPointEnter = null, dataPointEnter = null,
temp = this.drawData(svg, x, y, dataPointEnter, dataPoint); temp = this.drawData(svg, x, y, dataPointEnter, dataPoint);
dataPointEnter = temp[0]; dataPointEnter = temp[0];

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
(function (jsOMS) (function (jsOMS)
{ {
"use strict"; "use strict";
jsOMS.Chart.LineChart = function (id) jsOMS.Chart.LineChart = function (id)
{ {
this.chart = new jsOMS.Chart.ChartAbstract(id); this.chart = new jsOMS.Chart.ChartAbstract(id);
@ -192,7 +192,7 @@
//svg.selectAll('.x.axis').transition().duration(500).call(xAxis1); //svg.selectAll('.x.axis').transition().duration(500).call(xAxis1);
//svg.selectAll('.y.axis').transition().duration(500).call(yAxis1); //svg.selectAll('.y.axis').transition().duration(500).call(yAxis1);
let dataPoint = null, let dataPoint = null,
dataPointEnter = null, dataPointEnter = null,
temp = this.drawData(svg, line, dataPointEnter, dataPoint); temp = this.drawData(svg, line, dataPointEnter, dataPoint);

View File

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

View File

@ -1,7 +1,7 @@
(function (jsOMS) (function (jsOMS)
{ {
"use strict"; "use strict";
jsOMS.Chart.PieChart = function (id) jsOMS.Chart.PieChart = function (id)
{ {
this.chart = new jsOMS.Chart.ChartAbstract(id); this.chart = new jsOMS.Chart.ChartAbstract(id);
@ -33,7 +33,7 @@
+ (this.chart.margin.left) + "," + (this.chart.margin.left) + ","
+ (this.chart.margin.top) + ")"); + (this.chart.margin.top) + ")");
let dataPoint = null, let dataPoint = null,
dataPointEnter = null, dataPointEnter = null,
temp = this.drawData(svg, dataPointEnter, dataPoint); temp = this.drawData(svg, dataPointEnter, dataPoint);
dataPointEnter = temp[0]; dataPointEnter = temp[0];
@ -80,9 +80,9 @@
.innerRadius(function() { return innerRadius; }); .innerRadius(function() { return innerRadius; });
dataPoint = svg.selectAll(".dataPoint").data(this.chart.dataset); dataPoint = svg.selectAll(".dataPoint").data(this.chart.dataset);
dataPoint.enter().append("g").attr("class", "dataPoint"); dataPoint.enter().append("g").attr("class", "dataPoint");
dataPointEnter = dataPoint.selectAll("path") dataPointEnter = dataPoint.selectAll("path")
.data(function (d) .data(function (d)
{ {

View File

@ -1,7 +1,7 @@
(function (jsOMS) (function (jsOMS)
{ {
"use strict"; "use strict";
jsOMS.Chart.PyramidChart = function (id) jsOMS.Chart.PyramidChart = function (id)
{ {
this.chart = new jsOMS.Chart.ChartAbstract(id); this.chart = new jsOMS.Chart.ChartAbstract(id);
@ -144,8 +144,8 @@
+ (this.chart.margin.top) + ")"); + (this.chart.margin.top) + ")");
this.chart.drawGrid(svg, xGrid, yGrid); this.chart.drawGrid(svg, xGrid, yGrid);
let dataPoint = null, let dataPoint = null,
dataPointEnter = null, dataPointEnter = null,
temp = this.drawData(svg, x, y, dataPointEnter, dataPoint); temp = this.drawData(svg, x, y, dataPointEnter, dataPoint);
dataPointEnter = temp[0]; dataPointEnter = temp[0];

View File

@ -1,7 +1,7 @@
(function (jsOMS) (function (jsOMS)
{ {
"use strict"; "use strict";
jsOMS.Chart.ScatterplotChart = function (id) jsOMS.Chart.ScatterplotChart = function (id)
{ {
this.chart = new jsOMS.Chart.ChartAbstract(id); this.chart = new jsOMS.Chart.ChartAbstract(id);
@ -90,8 +90,8 @@
+ (this.chart.margin.top) + ")"); + (this.chart.margin.top) + ")");
this.chart.drawGrid(svg, xGrid, yGrid); this.chart.drawGrid(svg, xGrid, yGrid);
let dataPoint = null, let dataPoint = null,
dataPointEnter = null, dataPointEnter = null,
temp = this.drawData(svg, x, y, dataPointEnter, dataPoint); temp = this.drawData(svg, x, y, dataPointEnter, dataPoint);
dataPointEnter = temp[0]; dataPointEnter = temp[0];

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
(function (jsOMS) (function (jsOMS)
{ {
"use strict"; "use strict";
jsOMS.Chart.VWaterfallChart = function (id) jsOMS.Chart.VWaterfallChart = function (id)
{ {
this.chart = new jsOMS.Chart.ChartAbstract(id); this.chart = new jsOMS.Chart.ChartAbstract(id);
@ -102,8 +102,8 @@
+ (this.chart.margin.top) + ")"); + (this.chart.margin.top) + ")");
this.chart.drawGrid(svg, xGrid, yGrid); this.chart.drawGrid(svg, xGrid, yGrid);
let dataPoint = null, let dataPoint = null,
dataPointEnter = null, dataPointEnter = null,
temp = this.drawData(svg, x, y, dataPointEnter, dataPoint); temp = this.drawData(svg, x, y, dataPointEnter, dataPoint);
dataPointEnter = temp[0]; dataPointEnter = temp[0];

View File

@ -1,7 +1,7 @@
(function (jsOMS) (function (jsOMS)
{ {
"use strict"; "use strict";
jsOMS.Chart.WaterfallChart = function (id) jsOMS.Chart.WaterfallChart = function (id)
{ {
this.chart = new jsOMS.Chart.ChartAbstract(id); this.chart = new jsOMS.Chart.ChartAbstract(id);
@ -102,8 +102,8 @@
+ (this.chart.margin.top) + ")"); + (this.chart.margin.top) + ")");
this.chart.drawGrid(svg, xGrid, yGrid); this.chart.drawGrid(svg, xGrid, yGrid);
let dataPoint = null, let dataPoint = null,
dataPointEnter = null, dataPointEnter = null,
temp = this.drawData(svg, x, y, dataPointEnter, dataPoint); temp = this.drawData(svg, x, y, dataPointEnter, dataPoint);
dataPointEnter = temp[0]; dataPointEnter = temp[0];

View File

@ -1,10 +1,10 @@
(function (jsOMS) { (function (jsOMS) {
"use strict"; "use strict";
jsOMS.Autoloader.defineNamespace('jsOMS.DataStorage'); jsOMS.Autoloader.defineNamespace('jsOMS.DataStorage');
// TODO: create comments // TODO: create comments
jsOMS.DataStorage.CacheManager = function () jsOMS.DataStorage.CacheManager = function ()
{ {
}; };
}(window.jsOMS = window.jsOMS || {})); }(window.jsOMS = window.jsOMS || {}));

View File

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

View File

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

View File

@ -1,9 +1,9 @@
(function (jsOMS) { (function (jsOMS) {
"use strict"; "use strict";
jsOMS.Autoloader.defineNamespace('jsOMS.DataStorage'); jsOMS.Autoloader.defineNamespace('jsOMS.DataStorage');
jsOMS.DataStorage.StorageManager = function () jsOMS.DataStorage.StorageManager = function ()
{ {
}; };
}(window.jsOMS = window.jsOMS || {})); }(window.jsOMS = window.jsOMS || {}));

View File

@ -3,7 +3,7 @@
jsOMS.Autoloader.defineNamespace('jsOMS.Dispatcher'); jsOMS.Autoloader.defineNamespace('jsOMS.Dispatcher');
jsOMS.Dispatcher.Dispatcher = function () jsOMS.Dispatcher.Dispatcher = function ()
{ {
}; };
}(window.jsOMS = window.jsOMS || {})); }(window.jsOMS = window.jsOMS || {}));

View File

@ -63,7 +63,7 @@
for (let id in this.groups[group]) { for (let id in this.groups[group]) {
if (this.groups[group].hasOwnProperty(id)) { if (this.groups[group].hasOwnProperty(id)) {
this.groups[group][id] = false; this.groups[group][id] = false;
} }
} }
}; };

View File

@ -14,7 +14,7 @@
/** /**
* @constructor * @constructor
* *
* @param {boolean} verbose Verbose logging * @param {boolean} verbose Verbose logging
* @param {boolean} ui Ui logging * @param {boolean} ui Ui logging
* @param {boolean} remote Remote logging * @param {boolean} remote Remote logging
@ -36,14 +36,14 @@
* @param {boolean} [verbose] Verbose logging * @param {boolean} [verbose] Verbose logging
* @param {boolean} [ui] Ui logging * @param {boolean} [ui] Ui logging
* @param {boolean} [remote] Remote logging * @param {boolean} [remote] Remote logging
* *
* @return {Object} * @return {Object}
* *
* @method * @method
* *
* @since 1.0.0 * @since 1.0.0
*/ */
jsOMS.Log.Logger.getInstance = function(verbose, ui, remote) jsOMS.Log.Logger.getInstance = function(verbose, ui, remote)
{ {
if(!jsOMS.Log.Logger.instance) { if(!jsOMS.Log.Logger.instance) {
jsOMS.Log.Logger.instance = new jsOMS.Log.Logger(verbose, ui, remote); jsOMS.Log.Logger.instance = new jsOMS.Log.Logger(verbose, ui, remote);
@ -60,7 +60,7 @@
* @param {string} message Message structure * @param {string} message Message structure
* @param {Object} [context] Context to put into message * @param {Object} [context] Context to put into message
* @param {string} [level] Log level * @param {string} [level] Log level
* *
* @return {string} * @return {string}
* *
* @method * @method
@ -86,7 +86,7 @@
* @param {string} message Message to display * @param {string} message Message to display
* @param {Object} [context] Context to put into message * @param {Object} [context] Context to put into message
* @param {string} level Log level * @param {string} level Log level
* *
* @return {Object} * @return {Object}
* *
* @method * @method
@ -112,7 +112,7 @@
* @param {string} message Message to display * @param {string} message Message to display
* @param {Object} [context] Context to put into message * @param {Object} [context] Context to put into message
* @param {string} level Log level * @param {string} level Log level
* *
* @return {void} * @return {void}
* *
* @method * @method
@ -173,7 +173,7 @@
* *
* @param {string} message Message to display * @param {string} message Message to display
* @param {Object} [context] Context to put into message * @param {Object} [context] Context to put into message
* *
* @return {void} * @return {void}
* *
* @method * @method
@ -192,7 +192,7 @@
* *
* @param {string} message Message to display * @param {string} message Message to display
* @param {Object} [context] Context to put into message * @param {Object} [context] Context to put into message
* *
* @return {void} * @return {void}
* *
* @method * @method
@ -211,7 +211,7 @@
* *
* @param {string} message Message to display * @param {string} message Message to display
* @param {Object} [context] Context to put into message * @param {Object} [context] Context to put into message
* *
* @return {void} * @return {void}
* *
* @method * @method
@ -230,7 +230,7 @@
* *
* @param {string} message Message to display * @param {string} message Message to display
* @param {Object} [context] Context to put into message * @param {Object} [context] Context to put into message
* *
* @return {void} * @return {void}
* *
* @method * @method
@ -249,7 +249,7 @@
* *
* @param {string} message Message to display * @param {string} message Message to display
* @param {Object} [context] Context to put into message * @param {Object} [context] Context to put into message
* *
* @return {void} * @return {void}
* *
* @method * @method
@ -268,7 +268,7 @@
* *
* @param {string} message Message to display * @param {string} message Message to display
* @param {Object} [context] Context to put into message * @param {Object} [context] Context to put into message
* *
* @return {void} * @return {void}
* *
* @method * @method
@ -287,7 +287,7 @@
* *
* @param {string} message Message to display * @param {string} message Message to display
* @param {Object} [context] Context to put into message * @param {Object} [context] Context to put into message
* *
* @return {void} * @return {void}
* *
* @method * @method
@ -306,7 +306,7 @@
* *
* @param {string} message Message to display * @param {string} message Message to display
* @param {Object} [context] Context to put into message * @param {Object} [context] Context to put into message
* *
* @return {void} * @return {void}
* *
* @method * @method
@ -326,7 +326,7 @@
* @param {string} level Log level * @param {string} level Log level
* @param {string} message Message to display * @param {string} message Message to display
* @param {Object} [context] Context to put into message * @param {Object} [context] Context to put into message
* *
* @return {void} * @return {void}
* *
* @method * @method
@ -346,7 +346,7 @@
* @param {string} level Log level * @param {string} level Log level
* @param {string} message Message to display * @param {string} message Message to display
* @param {Object} [context] Context to put into message * @param {Object} [context] Context to put into message
* *
* @return {void} * @return {void}
* *
* @method * @method

View File

@ -31,7 +31,7 @@
return stack.pop(); return stack.pop();
}; };
jsOMS.parseValue = function(value) jsOMS.parseValue = function(value)
{ {
return value.indexOf('.') === -1 ? parseInt(value) : parseFloat(value); return value.indexOf('.') === -1 ? parseInt(value) : parseFloat(value);
} }
@ -49,7 +49,7 @@
let output = []; let output = [];
equation = equation.replace(/\s+/g, ''); equation = equation.replace(/\s+/g, '');
equation = equation.split(/([\+\-\*\/\^\(\)])/).filter(function (n) { return n !== '' }); equation = equation.split(/([\+\-\*\/\^\(\)])/).filter(function (n) { return n !== '' });
let length = equation.length; let length = equation.length;
for(let i = 0; i < length; i++) { for(let i = 0; i < length; i++) {
@ -61,7 +61,7 @@
let o1 = token; let o1 = token;
let o2 = stack[stack.length - 1]; let o2 = stack[stack.length - 1];
while ('^*/+-'.indexOf(o2) !== -1 && while ('^*/+-'.indexOf(o2) !== -1 &&
( (
(operators[o1].order === -1 && operators[o1].precedence <= operators[o2].precedence) (operators[o1].order === -1 && operators[o1].precedence <= operators[o2].precedence)
|| (operators[o1].order === 1 && operators[o1].precedence < operators[o2].precedence) || (operators[o1].order === 1 && operators[o1].precedence < operators[o2].precedence)

View File

@ -9,7 +9,7 @@
(function (jsOMS) (function (jsOMS)
{ {
"use strict"; "use strict";
/** @namespace jsOMS.Math.Stochastic.Average */ /** @namespace jsOMS.Math.Stochastic.Average */
jsOMS.Autoloader.defineNamespace('jsOMS.Math.Stochastic.Average'); jsOMS.Autoloader.defineNamespace('jsOMS.Math.Stochastic.Average');

View File

@ -12,7 +12,7 @@
/** @namespace jsOMS.Message.Notification */ /** @namespace jsOMS.Message.Notification */
jsOMS.Autoloader.defineNamespace('jsOMS.Message.Notification'); jsOMS.Autoloader.defineNamespace('jsOMS.Message.Notification');
jsOMS.Message.Notification.NotificationType = Object.freeze({ jsOMS.Message.Notification.NotificationType = Object.freeze({
APP_NOTIFICATION: 1, APP_NOTIFICATION: 1,
BROWSER_NOTIFICATION: 2 BROWSER_NOTIFICATION: 2

View File

@ -12,7 +12,7 @@
/** @namespace jsOMS.Message.Request */ /** @namespace jsOMS.Message.Request */
jsOMS.Autoloader.defineNamespace('jsOMS.Message.Request'); jsOMS.Autoloader.defineNamespace('jsOMS.Message.Request');
jsOMS.Message.Request.OSType = Object.freeze({ jsOMS.Message.Request.OSType = Object.freeze({
WINDOWS_10: 'windows nt 10.0', /* Windows 10 */ WINDOWS_10: 'windows nt 10.0', /* Windows 10 */
WINDOWS_81: 'windows nt 6.3', /* Windows 8.1 */ WINDOWS_81: 'windows nt 6.3', /* Windows 8.1 */

View File

@ -320,7 +320,7 @@
str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p])); str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
} }
} }
return str.join("&"); return str.join("&");
}; };

View File

@ -12,7 +12,7 @@
/** @namespace jsOMS.Message.Request */ /** @namespace jsOMS.Message.Request */
jsOMS.Autoloader.defineNamespace('jsOMS.Message.Request'); jsOMS.Autoloader.defineNamespace('jsOMS.Message.Request');
jsOMS.Message.Request.RequestMethod = Object.freeze({ jsOMS.Message.Request.RequestMethod = Object.freeze({
POST: 'POST', POST: 'POST',
GET: 'GET', GET: 'GET',

View File

@ -12,7 +12,7 @@
/** @namespace jsOMS.Message.Request */ /** @namespace jsOMS.Message.Request */
jsOMS.Autoloader.defineNamespace('jsOMS.Message.Request'); jsOMS.Autoloader.defineNamespace('jsOMS.Message.Request');
jsOMS.Message.Request.RequestType = Object.freeze({ jsOMS.Message.Request.RequestType = Object.freeze({
JSON: 'json', JSON: 'json',
RAW: 'raw' RAW: 'raw'

View File

@ -12,7 +12,7 @@
/** @namespace jsOMS.Message.Response */ /** @namespace jsOMS.Message.Response */
jsOMS.Autoloader.defineNamespace('jsOMS.Message.Response'); jsOMS.Autoloader.defineNamespace('jsOMS.Message.Response');
jsOMS.Message.Response.ResponseResultType = Object.freeze({ jsOMS.Message.Response.ResponseResultType = Object.freeze({
MULTI: 0, MULTI: 0,
MESSAGE: 1, MESSAGE: 1,

View File

@ -12,7 +12,7 @@
/** @namespace jsOMS.Message.Response */ /** @namespace jsOMS.Message.Response */
jsOMS.Autoloader.defineNamespace('jsOMS.Message.Response'); jsOMS.Autoloader.defineNamespace('jsOMS.Message.Response');
jsOMS.Message.Response.ResponseType = Object.freeze({ jsOMS.Message.Response.ResponseType = Object.freeze({
TEXT: 'text', TEXT: 'text',
JSON: 'json', JSON: 'json',

View File

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

View File

@ -1,16 +1,16 @@
(function (jsOMS) { (function (jsOMS) {
"use strict"; "use strict";
jsOMS.Autoloader.defineNamespace('jsOMS.Route'); jsOMS.Autoloader.defineNamespace('jsOMS.Route');
// TODO: create comments // TODO: create comments
jsOMS.Route.Route = function () jsOMS.Route.Route = function ()
{ {
this.routes = null; this.routes = null;
}; };
// TODO: create comments // TODO: create comments
jsOMS.Route.prototype.add = function (path, callback, exact) jsOMS.Route.prototype.add = function (path, callback, exact)
{ {
exact = typeof exact !== 'undefined' ? exact : true; exact = typeof exact !== 'undefined' ? exact : true;

View File

@ -1,6 +1,6 @@
(function (jsOMS) { (function (jsOMS) {
"use strict"; "use strict";
jsOMS.Client = function (ip, port, protocol) { jsOMS.Client = function (ip, port, protocol) {
this.port = port; this.port = port;
this.ip = ip; this.ip = ip;

View File

@ -12,7 +12,7 @@
/** @namespace jsOMS.Spreadsheet */ /** @namespace jsOMS.Spreadsheet */
jsOMS.Autoloader.defineNamespace('jsOMS.Spreadsheet'); jsOMS.Autoloader.defineNamespace('jsOMS.Spreadsheet');
jsOMS.Spreadsheet.Cell = function(id, raw) jsOMS.Spreadsheet.Cell = function(id, raw)
{ {
this.id = id; this.id = id;
this.raw = raw; this.raw = raw;

View File

@ -12,7 +12,7 @@
/** @namespace jsOMS.Spreadsheet */ /** @namespace jsOMS.Spreadsheet */
jsOMS.Autoloader.defineNamespace('jsOMS.Spreadsheet'); jsOMS.Autoloader.defineNamespace('jsOMS.Spreadsheet');
jsOMS.Spreadsheet.Spreadsheet = function(id, dataset, options) jsOMS.Spreadsheet.Spreadsheet = function(id, dataset, options)
{ {
this.spreadsheet = document.getElementById(id); this.spreadsheet = document.getElementById(id);
this.title = ''; this.title = '';
@ -24,7 +24,7 @@
this.scroll = {h: false, v: false}; this.scroll = {h: false, v: false};
}; };
jsOMS.SpreadSheet.prototype.draw = function() jsOMS.SpreadSheet.prototype.draw = function()
{ {
let col = 0, let col = 0,
row = 0, row = 0,
@ -44,7 +44,7 @@
} }
}; };
jsOMS.SpreadSheet.prototype.drawCell = function() jsOMS.SpreadSheet.prototype.drawCell = function()
{ {
}; };
}(window.jsOMS = window.jsOMS || {})); }(window.jsOMS = window.jsOMS || {}));

View File

@ -85,7 +85,7 @@
// if it has selector then a listener for child events must be implemented since these can potentially changed without any knowledge // if it has selector then a listener for child events must be implemented since these can potentially changed without any knowledge
// todo: what if the selector parent is different from "e"? then this doesn't make sense! Maybe this isn't allowed to happen! // todo: what if the selector parent is different from "e"? then this doesn't make sense! Maybe this isn't allowed to happen!
// todo: careful this could cause bugs if there is another component relying on a listener for this dom element. Maybe create actionManager domlistener? // todo: careful this could cause bugs if there is another component relying on a listener for this dom element. Maybe create actionManager domlistener?
// Maybe just use this listener for ALL action listeners and check if delete, then remove otherwise do current stuff. // Maybe just use this listener for ALL action listeners and check if delete, then remove otherwise do current stuff.
// Problem is, the listener doesn't work for the node itself only for children and listening to ALL document nodes might be a bad idea?!?!?! // Problem is, the listener doesn't work for the node itself only for children and listening to ALL document nodes might be a bad idea?!?!?!
const observeConfig = {childList: false, attributes: true, subtree: false}; const observeConfig = {childList: false, attributes: true, subtree: false};
@ -121,7 +121,7 @@
* *
* @since 1.0.0 * @since 1.0.0
*/ */
jsOMS.UI.ActionManager.prototype.bindListener = function(e, listener) jsOMS.UI.ActionManager.prototype.bindListener = function(e, listener)
{ {
const self = this, const self = this,
actionLength = listener.action.length; actionLength = listener.action.length;

View File

@ -9,7 +9,7 @@
(function (jsOMS) (function (jsOMS)
{ {
"use strict"; "use strict";
/** @namespace jsOMS.UI.Input*/ /** @namespace jsOMS.UI.Input*/
jsOMS.Autoloader.defineNamespace('jsOMS.UI.Input'); jsOMS.Autoloader.defineNamespace('jsOMS.UI.Input');
@ -81,7 +81,7 @@
{ {
const db = document.getElementById(dataButton); const db = document.getElementById(dataButton);
if(db) { if(db) {
db.click(); db.click();
} }
}); });

View File

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

View File

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

View File

@ -89,7 +89,7 @@
element.addEventListener('dragover', function(e) { element.addEventListener('dragover', function(e) {
e.preventDefault(); e.preventDefault();
e.dataTransfer.dropEffect = 'move'; e.dataTransfer.dropEffect = 'move';
}, false); }, false);

View File

@ -23,7 +23,7 @@
this.visObs = null; this.visObs = null;
}; };
/** /**
* Bind button. * Bind button.
* *
@ -38,12 +38,12 @@
let e = null; let e = null;
if (typeof id !== 'undefined') { if (typeof id !== 'undefined') {
e = document.getElementById(id); e = document.getElementById(id);
} }
this.bindHref(e); this.bindHref(e);
this.bindLazyLoad(e); this.bindLazyLoad(e);
}; };
/** /**
* Bind & rebind UI element. * Bind & rebind UI element.
* *

View File

@ -96,8 +96,8 @@
match = false; match = false;
break; break;
} }
match = true; match = true;
} }

View File

@ -100,7 +100,7 @@
relatedTarget: null relatedTarget: null
} }
); );
document.dispatchEvent(rightClick); document.dispatchEvent(rightClick);
} else if (elapsedTime < 500) { } else if (elapsedTime < 500) {
/** global: Event */ /** global: Event */

View File

@ -17,11 +17,11 @@
/** global: webkitSpeechRecognition */ /** global: webkitSpeechRecognition */
/** global: SpeechRecognition */ /** global: SpeechRecognition */
var SpeechRecognition = typeof SpeechRecognition !== 'undefined' ? SpeechRecognition : typeof webkitSpeechRecognition !== 'undefined' ? webkitSpeechRecognition : null; var SpeechRecognition = typeof SpeechRecognition !== 'undefined' ? SpeechRecognition : typeof webkitSpeechRecognition !== 'undefined' ? webkitSpeechRecognition : null;
/** global: webkitSpeechGrammarList */ /** global: webkitSpeechGrammarList */
/** global: SpeechGrammarList */ /** global: SpeechGrammarList */
var SpeechGrammarList = typeof SpeechGrammarList !== 'undefined' ? SpeechGrammarList : typeof webkitSpeechGrammarList !== 'undefined' ? webkitSpeechGrammarList : null; var SpeechGrammarList = typeof SpeechGrammarList !== 'undefined' ? SpeechGrammarList : typeof webkitSpeechGrammarList !== 'undefined' ? webkitSpeechGrammarList : null;
/** global: webkitSpeechRecognitionEvent */ /** global: webkitSpeechRecognitionEvent */
/** global: SpeechRecognitionEvent */ /** global: SpeechRecognitionEvent */
var SpeechRecognitionEvent = typeof SpeechRecognitionEvent !== 'undefined' ? SpeechRecognitionEvent : typeof webkitSpeechRecognitionEvent !== 'undefined' ? webkitSpeechRecognitionEvent : null; var SpeechRecognitionEvent = typeof SpeechRecognitionEvent !== 'undefined' ? SpeechRecognitionEvent : typeof webkitSpeechRecognitionEvent !== 'undefined' ? webkitSpeechRecognitionEvent : null;
@ -35,7 +35,7 @@
{ {
this.pitch = 1; this.pitch = 1;
this.rate = 1; this.rate = 1;
this.lang = typeof lang === 'undefined' ? 'en-US' : lang; this.lang = typeof lang === 'undefined' ? 'en-US' : lang;
this.voices = []; this.voices = [];
this.voice = null; this.voice = null;
@ -47,7 +47,7 @@
/** /**
* Read text. * Read text.
* *
* @param {string} text Text to read * @param {string} text Text to read
* *
* @return {void} * @return {void}
@ -67,7 +67,7 @@
/** /**
* Set Language. * Set Language.
* *
* @param {string} lang Language id (e.g. en-US) * @param {string} lang Language id (e.g. en-US)
* *
* @return {void} * @return {void}
@ -81,7 +81,7 @@
/** /**
* Set pitch. * Set pitch.
* *
* @param {int} pitch Pitch * @param {int} pitch Pitch
* *
* @return {void} * @return {void}
@ -95,7 +95,7 @@
/** /**
* Set rate. * Set rate.
* *
* @param {int} rate Rate * @param {int} rate Rate
* *
* @return {void} * @return {void}
@ -109,7 +109,7 @@
/** /**
* Get supported voices. * Get supported voices.
* *
* @return {Array} * @return {Array}
* *
* @since 1.0.0 * @since 1.0.0

View File

@ -17,11 +17,11 @@
/** global: webkitSpeechRecognition */ /** global: webkitSpeechRecognition */
/** global: SpeechRecognition */ /** global: SpeechRecognition */
var SpeechRecognition = typeof SpeechRecognition !== 'undefined' ? SpeechRecognition : typeof webkitSpeechRecognition !== 'undefined' ? webkitSpeechRecognition : null; var SpeechRecognition = typeof SpeechRecognition !== 'undefined' ? SpeechRecognition : typeof webkitSpeechRecognition !== 'undefined' ? webkitSpeechRecognition : null;
/** global: webkitSpeechGrammarList */ /** global: webkitSpeechGrammarList */
/** global: SpeechGrammarList */ /** global: SpeechGrammarList */
var SpeechGrammarList = typeof SpeechGrammarList !== 'undefined' ? SpeechGrammarList : typeof webkitSpeechGrammarList !== 'undefined' ? webkitSpeechGrammarList : null; var SpeechGrammarList = typeof SpeechGrammarList !== 'undefined' ? SpeechGrammarList : typeof webkitSpeechGrammarList !== 'undefined' ? webkitSpeechGrammarList : null;
/** global: webkitSpeechRecognitionEvent */ /** global: webkitSpeechRecognitionEvent */
/** global: SpeechRecognitionEvent */ /** global: SpeechRecognitionEvent */
var SpeechRecognitionEvent = typeof SpeechRecognitionEvent !== 'undefined' ? SpeechRecognitionEvent : typeof webkitSpeechRecognitionEvent !== 'undefined' ? webkitSpeechRecognitionEvent : null; var SpeechRecognitionEvent = typeof SpeechRecognitionEvent !== 'undefined' ? SpeechRecognitionEvent : typeof webkitSpeechRecognitionEvent !== 'undefined' ? webkitSpeechRecognitionEvent : null;
@ -109,7 +109,7 @@
* Set language * Set language
* *
* @param {string} lang Language code (e.g. en-US) * @param {string} lang Language code (e.g. en-US)
* *
* @return {void} * @return {void}
* *
* @since 1.0.0 * @since 1.0.0
@ -125,7 +125,7 @@
* *
* @param {string} command Command id * @param {string} command Command id
* @param {callback} callback Callback for command * @param {callback} callback Callback for command
* *
* @return {void} * @return {void}
* *
* @since 1.0.0 * @since 1.0.0
@ -163,7 +163,7 @@
if(SpeechRecognition === null) { if(SpeechRecognition === null) {
return; return;
} }
this.recognition.stop(); this.recognition.stop();
}; };
}(window.jsOMS = window.jsOMS || {})); }(window.jsOMS = window.jsOMS || {}));

View File

@ -163,7 +163,7 @@
{ {
return this.domObserver; return this.domObserver;
}; };
/** /**
* Get general UI * Get general UI
* *

View File

@ -15,7 +15,7 @@
{ {
/** global: jsOMS */ /** global: jsOMS */
jsOMS.Log.Logger.instance.error(e.error); jsOMS.Log.Logger.instance.error(e.error);
return false; return false;
}); });
}(window.jsOMS = window.jsOMS || {})); }(window.jsOMS = window.jsOMS || {}));

View File

@ -184,7 +184,7 @@
this.fragment = typeof parsed['fragment'] !== 'undefined' ? parsed['fragment'] : ''; this.fragment = typeof parsed['fragment'] !== 'undefined' ? parsed['fragment'] : '';
this.base = this.scheme + '://' + this.host + this.root; this.base = this.scheme + '://' + this.host + this.root;
}; };
/** /**
* Set root path. * Set root path.
* *
@ -341,7 +341,7 @@
{ {
return this.path; return this.path;
}; };
/** /**
* Get Uri path offset * Get Uri path offset
* *

View File

@ -51,7 +51,7 @@
* Get query * Get query
* *
* @param {string} key * @param {string} key
* *
* @return {string} * @return {string}
* *
* @method * @method
@ -76,7 +76,7 @@
* *
* @since 1.0.0 * @since 1.0.0
*/ */
jsOMS.Uri.UriFactory.clearAll = function() jsOMS.Uri.UriFactory.clearAll = function()
{ {
jsOMS.Uri.UriFactory.uri = {}; jsOMS.Uri.UriFactory.uri = {};
@ -87,7 +87,7 @@
* Clear uri component * Clear uri component
* *
* @param {string} key Uri key for component * @param {string} key Uri key for component
* *
* @return {boolean} * @return {boolean}
* *
* @method * @method
@ -109,14 +109,14 @@
* Clear uri components that follow a certain pattern * Clear uri components that follow a certain pattern
* *
* @param {string} pattern Uri key pattern to remove * @param {string} pattern Uri key pattern to remove
* *
* @return {boolean} * @return {boolean}
* *
* @method * @method
* *
* @since 1.0.0 * @since 1.0.0
*/ */
jsOMS.Uri.UriFactory.clearLike = function(pattern) jsOMS.Uri.UriFactory.clearLike = function(pattern)
{ {
let success = false; let success = false;
const regexp = new RegExp(pattern); const regexp = new RegExp(pattern);

View File

@ -11,7 +11,7 @@
(function (jsOMS) (function (jsOMS)
{ {
"use strict"; "use strict";
/** /**
* Trim char from string * Trim char from string
* *
@ -38,7 +38,7 @@
if (typeof current === 'undefined' || !current.hasOwnProperty(pathParts[key])) { if (typeof current === 'undefined' || !current.hasOwnProperty(pathParts[key])) {
return null; return null;
} }
current = current[key]; current = current[key];
} }

View File

@ -91,14 +91,14 @@
]; ];
jsOMS.Utils.Parser.Markdown.safeLinksWhitelist = [ jsOMS.Utils.Parser.Markdown.safeLinksWhitelist = [
'http://', 'https://', 'ftp://', 'ftps://', 'mailto:', 'http://', 'https://', 'ftp://', 'ftps://', 'mailto:',
'data:image/png;base64,', 'data:image/gif;base64,', 'data:image/jpeg;base64,', 'data:image/png;base64,', 'data:image/gif;base64,', 'data:image/jpeg;base64,',
'irc:', 'ircs:', 'git:', 'ssh:', 'news:', 'steam:', 'irc:', 'ircs:', 'git:', 'ssh:', 'news:', 'steam:',
]; ];
jsOMS.Utils.Parser.Markdown.definitionData = {}; jsOMS.Utils.Parser.Markdown.definitionData = {};
jsOMS.Utils.Parser.Markdown.parse = function(text) jsOMS.Utils.Parser.Markdown.parse = function(text)
{ {
jsOMS.Utils.Parser.Markdown.definitionData = {}; jsOMS.Utils.Parser.Markdown.definitionData = {};
text = text.replace("\r\n", "\n").replace("\r", "\n"); text = text.replace("\r\n", "\n").replace("\r", "\n");
@ -196,7 +196,7 @@
} }
} }
if (jsOMS.isset(currentBlock) if (jsOMS.isset(currentBlock)
&& typeof currentBlock['type'] === 'undefined' && typeof currentBlock['type'] === 'undefined'
&& typeof currentBlock['interrupted'] === 'undefined' && typeof currentBlock['interrupted'] === 'undefined'
) { ) {
@ -363,7 +363,7 @@
} }
text = jsOMS.trim(lineArray['text'], '# '); text = jsOMS.trim(lineArray['text'], '# ');
return { return {
element: { element: {
name: 'h' + Math.min(6, level), name: 'h' + Math.min(6, level),
@ -542,7 +542,7 @@
}; };
jsOMS.Utils.Parser.Markdown.definitionData['Reference'][id] = data; jsOMS.Utils.Parser.Markdown.definitionData['Reference'][id] = data;
return {hidden: true}; return {hidden: true};
}; };
@ -557,7 +557,7 @@
let divider = lineArray['text']; let divider = lineArray['text'];
divider = jsOMS.trim(divider); divider = jsOMS.trim(divider);
divider = jsOMS.trim(divider, '|'); divider = jsOMS.trim(divider, '|');
const dividerCells = divider.split('|'); const dividerCells = divider.split('|');
let dividerLength = dividerCells.length; let dividerLength = dividerCells.length;
@ -694,7 +694,7 @@
{ {
let markup = ''; let markup = '';
let excerpt = null; let excerpt = null;
outerloop: outerloop:
while (excerpt = jsOMS.strpbrk(text, jsOMS.Utils.Parser.Markdown.inlineMarkerList)) { while (excerpt = jsOMS.strpbrk(text, jsOMS.Utils.Parser.Markdown.inlineMarkerList)) {
let marker = excerpt[0]; let marker = excerpt[0];
@ -703,7 +703,7 @@
for (let inlineType in jsOMS.Utils.Parser.Markdown.inlineTypes[marker]) { for (let inlineType in jsOMS.Utils.Parser.Markdown.inlineTypes[marker]) {
inlineType = jsOMS.Utils.Parser.Markdown.inlineTypes[marker][inlineType]; inlineType = jsOMS.Utils.Parser.Markdown.inlineTypes[marker][inlineType];
let inline = jsOMS.Utils.Parser.Markdown['inline' + inlineType](excerptArray); let inline = jsOMS.Utils.Parser.Markdown['inline' + inlineType](excerptArray);
if (typeof inline === 'undefined') { if (typeof inline === 'undefined') {
@ -883,7 +883,7 @@
/*if ((matches = remainder.match(/^[(]\s*+((?:[^ ()]++|[(][^ )]+[)])++)(?:[ ]+("[^"]*"|\'[^\']*\'))?\s*[)]/)) !== null) { /*if ((matches = remainder.match(/^[(]\s*+((?:[^ ()]++|[(][^ )]+[)])++)(?:[ ]+("[^"]*"|\'[^\']*\'))?\s*[)]/)) !== null) {
element['attributes']['href'] = matches[1]; element['attributes']['href'] = matches[1];
if (typeof matches[2] !== 'undefined') { if (typeof matches[2] !== 'undefined') {
element['attributes']['title'] = matches[2].substr(1, -1); element['attributes']['title'] = matches[2].substr(1, -1);
} }
@ -894,7 +894,7 @@
if ((matches = remainder.match(/^\s*\[(.*?)\]/)) !== null) { if ((matches = remainder.match(/^\s*\[(.*?)\]/)) !== null) {
definition = matches[1].length > 0 ? matches[1] : element['text']; definition = matches[1].length > 0 ? matches[1] : element['text'];
definition = definition.toLowerCase(); definition = definition.toLowerCase();
extent += matches[0].length; extent += matches[0].length;
} else { } else {
definition = element['text'].toLowerCase(); definition = element['text'].toLowerCase();
} }
@ -1084,7 +1084,7 @@
return element; return element;
}; };
jsOMS.Utils.Parser.Markdown.filterUnsafeUrlInAttribute = function (element, attribute) jsOMS.Utils.Parser.Markdown.filterUnsafeUrlInAttribute = function (element, attribute)
{ {
const length = jsOMS.Utils.Parser.Markdown.safeLinksWhitelist.length; const length = jsOMS.Utils.Parser.Markdown.safeLinksWhitelist.length;
@ -1099,7 +1099,7 @@
return element; return element;
}; };
jsOMS.Utils.Parser.Markdown.escape = function (text, allowQuotes) jsOMS.Utils.Parser.Markdown.escape = function (text, allowQuotes)
{ {
allowQuotes = typeof allowQuotes !== 'undefined'; allowQuotes = typeof allowQuotes !== 'undefined';
@ -1112,7 +1112,7 @@
if(length > string.length) { if(length > string.length) {
return false; return false;
} }
return string.substr(0, length).toLowerCase() === needle.toLowerCase(); return string.substr(0, length).toLowerCase() === needle.toLowerCase();
}; };

View File

@ -11,7 +11,7 @@
(function (jsOMS) (function (jsOMS)
{ {
"use strict"; "use strict";
/** /**
* Trim char from string * Trim char from string
* *
@ -65,10 +65,10 @@
jsOMS.ltrim = function(str, char) jsOMS.ltrim = function(str, char)
{ {
char = typeof char === 'undefined' ? ' ' : char; char = typeof char === 'undefined' ? ' ' : char;
return str.replace(new RegExp("^[" + char + "]*"), ''); return str.replace(new RegExp("^[" + char + "]*"), '');
}; };
/** /**
* Count string in string * Count string in string
* *
@ -84,8 +84,8 @@
jsOMS.substr_count = function(str, substr) { jsOMS.substr_count = function(str, substr) {
str += ''; str += '';
substr += ''; substr += '';
if (substr.length <= 0) { if (substr.length <= 0) {
return (str.length + 1); return (str.length + 1);
} }
@ -95,7 +95,7 @@
while (true) { while (true) {
pos = str.indexOf(substr, pos); pos = str.indexOf(substr, pos);
if (pos >= 0) { if (pos >= 0) {
++n; ++n;
pos += step; pos += step;
@ -103,7 +103,7 @@
break; break;
} }
} }
return n; return n;
}; };
@ -130,7 +130,7 @@
return res; return res;
}; };
jsOMS.strpbrk = function (haystack, chars) jsOMS.strpbrk = function (haystack, chars)
{ {
const length = haystack.length; const length = haystack.length;
for (let i = 0; i < length; ++i) { for (let i = 0; i < length; ++i) {
@ -155,7 +155,7 @@
map['"'] = '"'; map['"'] = '"';
map["'"] = "'"; map["'"] = "'";
} }
return text.replace(/[&<>"']/g, function(m) { return map[m]; }); return text.replace(/[&<>"']/g, function(m) { return map[m]; });
}; };
}(window.jsOMS = window.jsOMS || {})); }(window.jsOMS = window.jsOMS || {}));

View File

@ -38,13 +38,13 @@
if(typeof current === 'undefined' || !current.hasOwnProperty(pathParts[key])) { if(typeof current === 'undefined' || !current.hasOwnProperty(pathParts[key])) {
return null; return null;
} }
current = current[pathParts[key]]; current = current[pathParts[key]];
} }
return current; return current;
}; };
/** /**
* Trim char from string * Trim char from string
* *
@ -98,10 +98,10 @@
jsOMS.ltrim = function(str, char) jsOMS.ltrim = function(str, char)
{ {
char = typeof char === 'undefined' ? ' ' : char; char = typeof char === 'undefined' ? ' ' : char;
return str.replace(new RegExp("^[" + char + "]*"), ''); return str.replace(new RegExp("^[" + char + "]*"), '');
}; };
/** /**
* Count string in string * Count string in string
* *
@ -117,8 +117,8 @@
jsOMS.substr_count = function(str, substr) { jsOMS.substr_count = function(str, substr) {
str += ''; str += '';
substr += ''; substr += '';
if (substr.length <= 0) { if (substr.length <= 0) {
return (str.length + 1); return (str.length + 1);
} }
@ -128,7 +128,7 @@
while (true) { while (true) {
pos = str.indexOf(substr, pos); pos = str.indexOf(substr, pos);
if (pos >= 0) { if (pos >= 0) {
++n; ++n;
pos += step; pos += step;
@ -136,7 +136,7 @@
break; break;
} }
} }
return n; return n;
}; };
@ -443,7 +443,7 @@
return typeof variable !== 'undefined' && variable !== null; return typeof variable !== 'undefined' && variable !== null;
}; };
jsOMS.strpbrk = function (haystack, char_list) jsOMS.strpbrk = function (haystack, char_list)
{ {
const length = haystack.length; const length = haystack.length;
for (let i = 0; i < length; ++i) { for (let i = 0; i < length; ++i) {
@ -468,7 +468,7 @@
map['"'] = '"'; map['"'] = '"';
map["'"] = "'"; map["'"] = "'";
} }
return text.replace(/[&<>"']/g, function(m) { return map[m]; }); return text.replace(/[&<>"']/g, function(m) { return map[m]; });
}; };
}(window.jsOMS = window.jsOMS || {})); }(window.jsOMS = window.jsOMS || {}));

View File

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

View File

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