From 576832b4e4aec54b16ce9ba50657d23dbae9309b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 15 Jan 2018 18:53:45 +0100 Subject: [PATCH] Remove whitespace from end of line --- 3D/Loader/ObjLoader.js | 4 +-- Account/AccountManager.js | 4 +-- Account/AccountType.enum.js | 2 +- Animation/Animation.js | 2 +- Animation/Canvas/Particle.js | 12 +++---- Animation/Canvas/ParticleAnimation.js | 12 +++---- Auth/Auth.js | 2 +- Autoloader.js | 6 ++-- Chart/AreaChart.js | 2 +- Chart/BarChart.js | 6 ++-- Chart/CalendarChart.js | 14 ++++---- Chart/CandlestickChart.js | 14 ++++---- Chart/ChartAbstract.js | 2 +- Chart/ColumnChart.js | 4 +-- Chart/DiffAreaChart.js | 2 +- Chart/DonutChart.js | 2 +- Chart/GroupedBarChart.js | 2 +- Chart/GroupedColumnChart.js | 2 +- Chart/LineChart.js | 4 +-- Chart/OhlcChart.js | 2 +- Chart/PieChart.js | 8 ++--- Chart/PyramidChart.js | 6 ++-- Chart/ScatterplotChart.js | 6 ++-- Chart/StackedAreaChart.js | 2 +- Chart/StackedBarChart.js | 2 +- Chart/StackedColumnChart.js | 2 +- Chart/VWaterfallChart.js | 6 ++-- Chart/WaterfallChart.js | 6 ++-- DataStorage/CacheManager.js | 4 +-- DataStorage/CookieJar.js | 4 +-- DataStorage/LocalStorage.js | 4 +-- DataStorage/StorageManager.js | 6 ++-- Dispatcher/Dispatcher.js | 2 +- Event/EventManager.js | 2 +- Log/Logger.js | 32 +++++++++---------- Math/MathProcessor.js | 6 ++-- Math/Stochastic/Average.js | 2 +- Message/Notification/NotificationType.enum.js | 2 +- Message/Request/OSType.enum.js | 2 +- Message/Request/Request.js | 2 +- Message/Request/RequestMethod.enum.js | 2 +- Message/Request/RequestType.enum.js | 2 +- Message/Response/ResponseResultType.enum.js | 2 +- Message/Response/ResponseType.enum.js | 2 +- Module/ModuleFactory.js | 4 +-- Route/Route.js | 6 ++-- Socket/Client/Client.js | 2 +- Spreadsheet/Cell.js | 2 +- Spreadsheet/Spreadsheet.js | 6 ++-- UI/ActionManager.js | 4 +-- UI/Component/Input.js | 4 +-- UI/Component/Tab.js | 4 +-- UI/Component/Table.js | 4 +-- UI/DragNDrop.js | 2 +- UI/GeneralUI.js | 8 ++--- UI/Input/Keyboard/KeyboardManager.js | 4 +-- UI/Input/Touch/TouchManager.js | 2 +- UI/Input/Voice/ReadManager.js | 16 +++++----- UI/Input/Voice/VoiceManager.js | 10 +++--- UI/UIManager.js | 2 +- UnhandledException.js | 2 +- Uri/Http.js | 4 +-- Uri/UriFactory.js | 10 +++--- Utils/ArrayUtils.js | 4 +-- Utils/Parser/Markdown.js | 28 ++++++++-------- Utils/StringUtils.js | 18 +++++------ Utils/oLib.js | 20 ++++++------ Views/TableView.js | 2 +- Views/ViewAbstract.js | 2 +- 69 files changed, 192 insertions(+), 192 deletions(-) diff --git a/3D/Loader/ObjLoader.js b/3D/Loader/ObjLoader.js index 3350819..b5f3ca1 100644 --- a/3D/Loader/ObjLoader.js +++ b/3D/Loader/ObjLoader.js @@ -323,8 +323,8 @@ } let lines = text.split('\n'), - line = '', - lineFirstChar = '', + line = '', + lineFirstChar = '', lineSecondChar = '', lineLength = 0, result = [], diff --git a/Account/AccountManager.js b/Account/AccountManager.js index 9c025ef..a6c2b3d 100644 --- a/Account/AccountManager.js +++ b/Account/AccountManager.js @@ -9,9 +9,9 @@ (function (jsOMS) { "use strict"; - + jsOMS.Autoloader.defineNamespace('jsOMS.Account'); - + /** * @constructor * diff --git a/Account/AccountType.enum.js b/Account/AccountType.enum.js index 5a86570..eae3133 100644 --- a/Account/AccountType.enum.js +++ b/Account/AccountType.enum.js @@ -9,7 +9,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Autoloader.defineNamespace('jsOMS.Account'); jsOMS.Account.AccountType = Object.freeze({ diff --git a/Animation/Animation.js b/Animation/Animation.js index 29dd434..12a4db9 100644 --- a/Animation/Animation.js +++ b/Animation/Animation.js @@ -16,7 +16,7 @@ /** * requestAnimationFrame wrapper * - * @return {function} + * @return {function} * * @method * diff --git a/Animation/Canvas/Particle.js b/Animation/Canvas/Particle.js index 4be35de..e6d11c4 100644 --- a/Animation/Canvas/Particle.js +++ b/Animation/Canvas/Particle.js @@ -33,7 +33,7 @@ /** * Get particle radius * - * @return {int} + * @return {int} * * @method * @@ -50,7 +50,7 @@ * @param {int} posX Position x * @param {int} posY Position y * - * @return {void} + * @return {void} * * @method * @@ -65,7 +65,7 @@ /** * Get position * - * @return {Object} + * @return {Object} * * @method * @@ -82,7 +82,7 @@ * @param {float} velX Velocity x * @param {float} velY Velocity y * - * @return {void} + * @return {void} * * @method * @@ -97,7 +97,7 @@ /** * Get velocity * - * @return {Object} + * @return {Object} * * @method * @@ -113,7 +113,7 @@ * * @param {object} ctx Canvas * - * @return {void} + * @return {void} * * @method * diff --git a/Animation/Canvas/ParticleAnimation.js b/Animation/Canvas/ParticleAnimation.js index 26deb82..58f1197 100644 --- a/Animation/Canvas/ParticleAnimation.js +++ b/Animation/Canvas/ParticleAnimation.js @@ -25,7 +25,7 @@ { this.canvas = canvas; this.ctx = canvas.getContext('2d'); - + /** global: screen */ this.width = screen.width; this.height = screen.height; @@ -53,7 +53,7 @@ * * @param {object} self Object reference for self invoke * - * @return {void} + * @return {void} * * @method * @@ -80,7 +80,7 @@ /** * Invalidate/clean canvas * - * @return {void} + * @return {void} * * @method * @@ -94,7 +94,7 @@ /** * Update particle * - * @return {void} + * @return {void} * * @method * @@ -143,10 +143,10 @@ /** * Handle distance between particles * - * @param {Particle} p1 Particle + * @param {Particle} p1 Particle * @param {Particle} p2 Particle * - * @return {void} + * @return {void} * * @method * diff --git a/Auth/Auth.js b/Auth/Auth.js index aef5cb8..27be937 100644 --- a/Auth/Auth.js +++ b/Auth/Auth.js @@ -9,7 +9,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Autoloader.defineNamespace('jsOMS.Auth'); /** diff --git a/Autoloader.js b/Autoloader.js index acd7c99..21f5b30 100644 --- a/Autoloader.js +++ b/Autoloader.js @@ -1,9 +1,9 @@ /** * Autoloader. * - * 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 - * include, import etc. Contrary to it's name the autoloader is not able to truely autoload + * 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 + * include, import etc. Contrary to it's name the autoloader is not able to truely autoload * referenced classes. * * @copyright Dennis Eichhorn diff --git a/Chart/AreaChart.js b/Chart/AreaChart.js index 6f6f831..b74dc2a 100644 --- a/Chart/AreaChart.js +++ b/Chart/AreaChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.AreaChart = function (id) { this.chart = new jsOMS.Chart.LineChart(id); diff --git a/Chart/BarChart.js b/Chart/BarChart.js index 6aeb58c..4015fec 100644 --- a/Chart/BarChart.js +++ b/Chart/BarChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.BarChart = function (id) { this.chart = new jsOMS.Chart.ChartAbstract(id); @@ -111,13 +111,13 @@ this.chart.drawGrid(svg, xGrid, yGrid); - let dataPoint = null, + let dataPoint = null, dataPointEnter = null, temp = this.drawData(svg, x, y, dataPointEnter, dataPoint); dataPointEnter = temp[0]; dataPoint = temp[1]; - + this.chart.drawMarker(svg, x, y, dataPointEnter, dataPoint); this.chart.drawLegend(svg, dataPointEnter, dataPoint); this.chart.drawText(svg); diff --git a/Chart/CalendarChart.js b/Chart/CalendarChart.js index df7a8ab..d9bea6e 100644 --- a/Chart/CalendarChart.js +++ b/Chart/CalendarChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.CalendarChart = function (id) { this.chart = new jsOMS.Chart.ChartAbstract(id); @@ -42,7 +42,7 @@ .attr("height", this.chart.dimension.height) .attr("class", "RdYlGn") .append("g") - .attr("transform", "translate(" + .attr("transform", "translate(" + ((this.chart.dimension.width - this.chart.cellSize * 53) / 2) + "," + (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 - rect.filter(function(d) { + rect.filter(function(d) { let year = d.split('-')[0], length = self.chart.dataset.length; @@ -101,12 +101,12 @@ return false; } - return false; + return false; }) .attr("class", function(d) { let year = d.split('-')[0], length = self.chart.dataset.length; - + for(let i = 0; i < length; i++) { if(self.chart.dataset[i].name != year) { continue; @@ -116,7 +116,7 @@ for(let j = 0; j < dataLength; j++) { 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) { let year = d.split('-')[0], length = self.chart.dataset.length; - + for(let i = 0; i < length; i++) { if(self.chart.dataset[i].name != year) { continue; diff --git a/Chart/CandlestickChart.js b/Chart/CandlestickChart.js index 3248e08..2c89147 100644 --- a/Chart/CandlestickChart.js +++ b/Chart/CandlestickChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.CandlestickChart = function (id) { this.chart = new jsOMS.Chart.ChartAbstract(id); @@ -102,7 +102,7 @@ .data(this.chart.dataset[0].points) .enter().append("svg:rect") .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("width", function(d) { return 0.5 * mm; }) .attr("fill",function(d) { return d.open > d.close ? "red" : "green" ;}); @@ -110,17 +110,17 @@ let datapoint = svg.selectAll("rect") .data(this.chart.dataset[0].points) .enter(); - + datapoint.append("svg:rect") .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("width", function(d) { return 0.25 * mm/2; }) .attr("fill",function(d) { return d.open > d.close ? "red" : "green" ;}); - + datapoint.append("svg:rect") .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("width", function(d) { return 0.25 * mm/2; }) .attr("fill",function(d) { return d.open > d.close ? "red" : "green" ;}); @@ -131,7 +131,7 @@ .enter().append("svg:line") .attr("class", "stem") .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("y2", function(d) { return y(d.y0); }) .attr("stroke", function(d){ return d.open > d.close ? "red" : "green"; }); diff --git a/Chart/ChartAbstract.js b/Chart/ChartAbstract.js index 0a9de3c..75ffbc2 100644 --- a/Chart/ChartAbstract.js +++ b/Chart/ChartAbstract.js @@ -4,7 +4,7 @@ /** @namespace jsOMS.Chart */ jsOMS.Autoloader.defineNamespace('jsOMS.Chart'); - + jsOMS.Chart.ChartAbstract = function (id) { /** global: d3 */ diff --git a/Chart/ColumnChart.js b/Chart/ColumnChart.js index 3133b21..ac5aaa8 100644 --- a/Chart/ColumnChart.js +++ b/Chart/ColumnChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.ColumnChart = function (id) { this.chart = new jsOMS.Chart.ChartAbstract(id); @@ -111,7 +111,7 @@ this.chart.drawGrid(svg, xGrid, yGrid); - let dataPoint = null, + let dataPoint = null, dataPointEnter = null, temp = this.drawData(svg, x, y, dataPointEnter, dataPoint); dataPointEnter = temp[0]; diff --git a/Chart/DiffAreaChart.js b/Chart/DiffAreaChart.js index cf989a1..45cb3a7 100644 --- a/Chart/DiffAreaChart.js +++ b/Chart/DiffAreaChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.DiffAreaChart = function (id) { this.chart = new jsOMS.Chart.LineChart(id); diff --git a/Chart/DonutChart.js b/Chart/DonutChart.js index 97f8ce0..4ac68e3 100644 --- a/Chart/DonutChart.js +++ b/Chart/DonutChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.DonutChart = function (id) { this.chart = new jsOMS.Chart.PieChart(id); diff --git a/Chart/GroupedBarChart.js b/Chart/GroupedBarChart.js index dfed8c7..e8e7664 100644 --- a/Chart/GroupedBarChart.js +++ b/Chart/GroupedBarChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.GroupedBarChart = function (id) { this.chart = new jsOMS.Chart.BarChart(id); diff --git a/Chart/GroupedColumnChart.js b/Chart/GroupedColumnChart.js index 1a26903..c48a3fa 100644 --- a/Chart/GroupedColumnChart.js +++ b/Chart/GroupedColumnChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.GroupedColumnChart = function (id) { this.chart = new jsOMS.Chart.ColumnChart(id); diff --git a/Chart/LineChart.js b/Chart/LineChart.js index b06c5cd..a706a9f 100644 --- a/Chart/LineChart.js +++ b/Chart/LineChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.LineChart = function (id) { this.chart = new jsOMS.Chart.ChartAbstract(id); @@ -192,7 +192,7 @@ //svg.selectAll('.x.axis').transition().duration(500).call(xAxis1); //svg.selectAll('.y.axis').transition().duration(500).call(yAxis1); - let dataPoint = null, + let dataPoint = null, dataPointEnter = null, temp = this.drawData(svg, line, dataPointEnter, dataPoint); diff --git a/Chart/OhlcChart.js b/Chart/OhlcChart.js index 75e2dd2..60784d9 100644 --- a/Chart/OhlcChart.js +++ b/Chart/OhlcChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.OhlcChart = function (id) { this.chart = new jsOMS.Chart.CandlestickChart(id); diff --git a/Chart/PieChart.js b/Chart/PieChart.js index 5599cd9..8c4f6f4 100644 --- a/Chart/PieChart.js +++ b/Chart/PieChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.PieChart = function (id) { this.chart = new jsOMS.Chart.ChartAbstract(id); @@ -33,7 +33,7 @@ + (this.chart.margin.left) + "," + (this.chart.margin.top) + ")"); - let dataPoint = null, + let dataPoint = null, dataPointEnter = null, temp = this.drawData(svg, dataPointEnter, dataPoint); dataPointEnter = temp[0]; @@ -80,9 +80,9 @@ .innerRadius(function() { return innerRadius; }); dataPoint = svg.selectAll(".dataPoint").data(this.chart.dataset); - + dataPoint.enter().append("g").attr("class", "dataPoint"); - + dataPointEnter = dataPoint.selectAll("path") .data(function (d) { diff --git a/Chart/PyramidChart.js b/Chart/PyramidChart.js index 0a7060a..9272e0f 100644 --- a/Chart/PyramidChart.js +++ b/Chart/PyramidChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.PyramidChart = function (id) { this.chart = new jsOMS.Chart.ChartAbstract(id); @@ -144,8 +144,8 @@ + (this.chart.margin.top) + ")"); this.chart.drawGrid(svg, xGrid, yGrid); - - let dataPoint = null, + + let dataPoint = null, dataPointEnter = null, temp = this.drawData(svg, x, y, dataPointEnter, dataPoint); dataPointEnter = temp[0]; diff --git a/Chart/ScatterplotChart.js b/Chart/ScatterplotChart.js index 5aa591a..1b6eb00 100644 --- a/Chart/ScatterplotChart.js +++ b/Chart/ScatterplotChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.ScatterplotChart = function (id) { this.chart = new jsOMS.Chart.ChartAbstract(id); @@ -90,8 +90,8 @@ + (this.chart.margin.top) + ")"); this.chart.drawGrid(svg, xGrid, yGrid); - - let dataPoint = null, + + let dataPoint = null, dataPointEnter = null, temp = this.drawData(svg, x, y, dataPointEnter, dataPoint); dataPointEnter = temp[0]; diff --git a/Chart/StackedAreaChart.js b/Chart/StackedAreaChart.js index 427c260..4d1f233 100644 --- a/Chart/StackedAreaChart.js +++ b/Chart/StackedAreaChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.StackedAreaChart = function (id) { this.chart = new jsOMS.Chart.LineChart(id); diff --git a/Chart/StackedBarChart.js b/Chart/StackedBarChart.js index 5048199..b9c34a9 100644 --- a/Chart/StackedBarChart.js +++ b/Chart/StackedBarChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.StackedBarChart = function (id) { this.chart = new jsOMS.Chart.BarChart(id); diff --git a/Chart/StackedColumnChart.js b/Chart/StackedColumnChart.js index 15ed0a0..79b9a04 100644 --- a/Chart/StackedColumnChart.js +++ b/Chart/StackedColumnChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.StackedColumnChart = function (id) { this.chart = new jsOMS.Chart.ColumnChart(id); diff --git a/Chart/VWaterfallChart.js b/Chart/VWaterfallChart.js index d0232a4..a1e17a8 100644 --- a/Chart/VWaterfallChart.js +++ b/Chart/VWaterfallChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.VWaterfallChart = function (id) { this.chart = new jsOMS.Chart.ChartAbstract(id); @@ -102,8 +102,8 @@ + (this.chart.margin.top) + ")"); this.chart.drawGrid(svg, xGrid, yGrid); - - let dataPoint = null, + + let dataPoint = null, dataPointEnter = null, temp = this.drawData(svg, x, y, dataPointEnter, dataPoint); dataPointEnter = temp[0]; diff --git a/Chart/WaterfallChart.js b/Chart/WaterfallChart.js index 67621c2..46f42b3 100644 --- a/Chart/WaterfallChart.js +++ b/Chart/WaterfallChart.js @@ -1,7 +1,7 @@ (function (jsOMS) { "use strict"; - + jsOMS.Chart.WaterfallChart = function (id) { this.chart = new jsOMS.Chart.ChartAbstract(id); @@ -102,8 +102,8 @@ + (this.chart.margin.top) + ")"); this.chart.drawGrid(svg, xGrid, yGrid); - - let dataPoint = null, + + let dataPoint = null, dataPointEnter = null, temp = this.drawData(svg, x, y, dataPointEnter, dataPoint); dataPointEnter = temp[0]; diff --git a/DataStorage/CacheManager.js b/DataStorage/CacheManager.js index 062f307..27eeae6 100644 --- a/DataStorage/CacheManager.js +++ b/DataStorage/CacheManager.js @@ -1,10 +1,10 @@ (function (jsOMS) { "use strict"; - + jsOMS.Autoloader.defineNamespace('jsOMS.DataStorage'); // TODO: create comments - jsOMS.DataStorage.CacheManager = function () + jsOMS.DataStorage.CacheManager = function () { }; }(window.jsOMS = window.jsOMS || {})); diff --git a/DataStorage/CookieJar.js b/DataStorage/CookieJar.js index 58b6e27..c3cb550 100644 --- a/DataStorage/CookieJar.js +++ b/DataStorage/CookieJar.js @@ -9,9 +9,9 @@ (function (jsOMS) { "use strict"; - + jsOMS.Autoloader.defineNamespace('jsOMS.DataStorage'); - + /** * @constructor * diff --git a/DataStorage/LocalStorage.js b/DataStorage/LocalStorage.js index 0ff5373..139950c 100644 --- a/DataStorage/LocalStorage.js +++ b/DataStorage/LocalStorage.js @@ -9,9 +9,9 @@ (function (jsOMS) { "use strict"; - + jsOMS.Autoloader.defineNamespace('jsOMS.DataStorage'); - + /** * @constructor * diff --git a/DataStorage/StorageManager.js b/DataStorage/StorageManager.js index 3bd1d69..269b3ce 100644 --- a/DataStorage/StorageManager.js +++ b/DataStorage/StorageManager.js @@ -1,9 +1,9 @@ (function (jsOMS) { "use strict"; - + jsOMS.Autoloader.defineNamespace('jsOMS.DataStorage'); - - jsOMS.DataStorage.StorageManager = function () + + jsOMS.DataStorage.StorageManager = function () { }; }(window.jsOMS = window.jsOMS || {})); diff --git a/Dispatcher/Dispatcher.js b/Dispatcher/Dispatcher.js index 5d05eeb..173c876 100644 --- a/Dispatcher/Dispatcher.js +++ b/Dispatcher/Dispatcher.js @@ -3,7 +3,7 @@ jsOMS.Autoloader.defineNamespace('jsOMS.Dispatcher'); - jsOMS.Dispatcher.Dispatcher = function () + jsOMS.Dispatcher.Dispatcher = function () { }; }(window.jsOMS = window.jsOMS || {})); diff --git a/Event/EventManager.js b/Event/EventManager.js index 6b206b7..f3bb3c1 100644 --- a/Event/EventManager.js +++ b/Event/EventManager.js @@ -63,7 +63,7 @@ for (let id in this.groups[group]) { if (this.groups[group].hasOwnProperty(id)) { this.groups[group][id] = false; - } + } } }; diff --git a/Log/Logger.js b/Log/Logger.js index c7a9314..ea8b09f 100644 --- a/Log/Logger.js +++ b/Log/Logger.js @@ -14,7 +14,7 @@ /** * @constructor - * + * * @param {boolean} verbose Verbose logging * @param {boolean} ui Ui logging * @param {boolean} remote Remote logging @@ -36,14 +36,14 @@ * @param {boolean} [verbose] Verbose logging * @param {boolean} [ui] Ui logging * @param {boolean} [remote] Remote logging - * + * * @return {Object} * * @method * * @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) { jsOMS.Log.Logger.instance = new jsOMS.Log.Logger(verbose, ui, remote); @@ -60,7 +60,7 @@ * @param {string} message Message structure * @param {Object} [context] Context to put into message * @param {string} [level] Log level - * + * * @return {string} * * @method @@ -86,7 +86,7 @@ * @param {string} message Message to display * @param {Object} [context] Context to put into message * @param {string} level Log level - * + * * @return {Object} * * @method @@ -112,7 +112,7 @@ * @param {string} message Message to display * @param {Object} [context] Context to put into message * @param {string} level Log level - * + * * @return {void} * * @method @@ -173,7 +173,7 @@ * * @param {string} message Message to display * @param {Object} [context] Context to put into message - * + * * @return {void} * * @method @@ -192,7 +192,7 @@ * * @param {string} message Message to display * @param {Object} [context] Context to put into message - * + * * @return {void} * * @method @@ -211,7 +211,7 @@ * * @param {string} message Message to display * @param {Object} [context] Context to put into message - * + * * @return {void} * * @method @@ -230,7 +230,7 @@ * * @param {string} message Message to display * @param {Object} [context] Context to put into message - * + * * @return {void} * * @method @@ -249,7 +249,7 @@ * * @param {string} message Message to display * @param {Object} [context] Context to put into message - * + * * @return {void} * * @method @@ -268,7 +268,7 @@ * * @param {string} message Message to display * @param {Object} [context] Context to put into message - * + * * @return {void} * * @method @@ -287,7 +287,7 @@ * * @param {string} message Message to display * @param {Object} [context] Context to put into message - * + * * @return {void} * * @method @@ -306,7 +306,7 @@ * * @param {string} message Message to display * @param {Object} [context] Context to put into message - * + * * @return {void} * * @method @@ -326,7 +326,7 @@ * @param {string} level Log level * @param {string} message Message to display * @param {Object} [context] Context to put into message - * + * * @return {void} * * @method @@ -346,7 +346,7 @@ * @param {string} level Log level * @param {string} message Message to display * @param {Object} [context] Context to put into message - * + * * @return {void} * * @method diff --git a/Math/MathProcessor.js b/Math/MathProcessor.js index db7e55c..c7dd9e1 100644 --- a/Math/MathProcessor.js +++ b/Math/MathProcessor.js @@ -31,7 +31,7 @@ return stack.pop(); }; - jsOMS.parseValue = function(value) + jsOMS.parseValue = function(value) { return value.indexOf('.') === -1 ? parseInt(value) : parseFloat(value); } @@ -49,7 +49,7 @@ let output = []; 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; for(let i = 0; i < length; i++) { @@ -61,7 +61,7 @@ let o1 = token; 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) diff --git a/Math/Stochastic/Average.js b/Math/Stochastic/Average.js index 1a22a6d..13a7237 100644 --- a/Math/Stochastic/Average.js +++ b/Math/Stochastic/Average.js @@ -9,7 +9,7 @@ (function (jsOMS) { "use strict"; - + /** @namespace jsOMS.Math.Stochastic.Average */ jsOMS.Autoloader.defineNamespace('jsOMS.Math.Stochastic.Average'); diff --git a/Message/Notification/NotificationType.enum.js b/Message/Notification/NotificationType.enum.js index 34aa169..ee4583f 100644 --- a/Message/Notification/NotificationType.enum.js +++ b/Message/Notification/NotificationType.enum.js @@ -12,7 +12,7 @@ /** @namespace jsOMS.Message.Notification */ jsOMS.Autoloader.defineNamespace('jsOMS.Message.Notification'); - + jsOMS.Message.Notification.NotificationType = Object.freeze({ APP_NOTIFICATION: 1, BROWSER_NOTIFICATION: 2 diff --git a/Message/Request/OSType.enum.js b/Message/Request/OSType.enum.js index aa4a39d..cd71e86 100644 --- a/Message/Request/OSType.enum.js +++ b/Message/Request/OSType.enum.js @@ -12,7 +12,7 @@ /** @namespace jsOMS.Message.Request */ jsOMS.Autoloader.defineNamespace('jsOMS.Message.Request'); - + jsOMS.Message.Request.OSType = Object.freeze({ WINDOWS_10: 'windows nt 10.0', /* Windows 10 */ WINDOWS_81: 'windows nt 6.3', /* Windows 8.1 */ diff --git a/Message/Request/Request.js b/Message/Request/Request.js index 3501263..4c847ce 100644 --- a/Message/Request/Request.js +++ b/Message/Request/Request.js @@ -320,7 +320,7 @@ str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p])); } } - + return str.join("&"); }; diff --git a/Message/Request/RequestMethod.enum.js b/Message/Request/RequestMethod.enum.js index ccaab8f..521b495 100644 --- a/Message/Request/RequestMethod.enum.js +++ b/Message/Request/RequestMethod.enum.js @@ -12,7 +12,7 @@ /** @namespace jsOMS.Message.Request */ jsOMS.Autoloader.defineNamespace('jsOMS.Message.Request'); - + jsOMS.Message.Request.RequestMethod = Object.freeze({ POST: 'POST', GET: 'GET', diff --git a/Message/Request/RequestType.enum.js b/Message/Request/RequestType.enum.js index 6d41b55..5a30cb2 100644 --- a/Message/Request/RequestType.enum.js +++ b/Message/Request/RequestType.enum.js @@ -12,7 +12,7 @@ /** @namespace jsOMS.Message.Request */ jsOMS.Autoloader.defineNamespace('jsOMS.Message.Request'); - + jsOMS.Message.Request.RequestType = Object.freeze({ JSON: 'json', RAW: 'raw' diff --git a/Message/Response/ResponseResultType.enum.js b/Message/Response/ResponseResultType.enum.js index acb36db..68baa8d 100644 --- a/Message/Response/ResponseResultType.enum.js +++ b/Message/Response/ResponseResultType.enum.js @@ -12,7 +12,7 @@ /** @namespace jsOMS.Message.Response */ jsOMS.Autoloader.defineNamespace('jsOMS.Message.Response'); - + jsOMS.Message.Response.ResponseResultType = Object.freeze({ MULTI: 0, MESSAGE: 1, diff --git a/Message/Response/ResponseType.enum.js b/Message/Response/ResponseType.enum.js index 187d54d..c1eac59 100644 --- a/Message/Response/ResponseType.enum.js +++ b/Message/Response/ResponseType.enum.js @@ -12,7 +12,7 @@ /** @namespace jsOMS.Message.Response */ jsOMS.Autoloader.defineNamespace('jsOMS.Message.Response'); - + jsOMS.Message.Response.ResponseType = Object.freeze({ TEXT: 'text', JSON: 'json', diff --git a/Module/ModuleFactory.js b/Module/ModuleFactory.js index 55a2541..469e2c9 100644 --- a/Module/ModuleFactory.js +++ b/Module/ModuleFactory.js @@ -9,9 +9,9 @@ (function (jsOMS) { "use strict"; - + jsOMS.Autoloader.defineNamespace('jsOMS.Module'); - + /** * @constructor * diff --git a/Route/Route.js b/Route/Route.js index 2b86a2e..817fe8f 100644 --- a/Route/Route.js +++ b/Route/Route.js @@ -1,16 +1,16 @@ (function (jsOMS) { "use strict"; - + jsOMS.Autoloader.defineNamespace('jsOMS.Route'); // TODO: create comments - jsOMS.Route.Route = function () + jsOMS.Route.Route = function () { this.routes = null; }; // 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; diff --git a/Socket/Client/Client.js b/Socket/Client/Client.js index c2be6e5..eb41762 100644 --- a/Socket/Client/Client.js +++ b/Socket/Client/Client.js @@ -1,6 +1,6 @@ (function (jsOMS) { "use strict"; - + jsOMS.Client = function (ip, port, protocol) { this.port = port; this.ip = ip; diff --git a/Spreadsheet/Cell.js b/Spreadsheet/Cell.js index ef3be92..8dee3e8 100644 --- a/Spreadsheet/Cell.js +++ b/Spreadsheet/Cell.js @@ -12,7 +12,7 @@ /** @namespace jsOMS.Spreadsheet */ jsOMS.Autoloader.defineNamespace('jsOMS.Spreadsheet'); - jsOMS.Spreadsheet.Cell = function(id, raw) + jsOMS.Spreadsheet.Cell = function(id, raw) { this.id = id; this.raw = raw; diff --git a/Spreadsheet/Spreadsheet.js b/Spreadsheet/Spreadsheet.js index 09e932a..75067a5 100644 --- a/Spreadsheet/Spreadsheet.js +++ b/Spreadsheet/Spreadsheet.js @@ -12,7 +12,7 @@ /** @namespace 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.title = ''; @@ -24,7 +24,7 @@ this.scroll = {h: false, v: false}; }; - jsOMS.SpreadSheet.prototype.draw = function() + jsOMS.SpreadSheet.prototype.draw = function() { let col = 0, row = 0, @@ -44,7 +44,7 @@ } }; - jsOMS.SpreadSheet.prototype.drawCell = function() + jsOMS.SpreadSheet.prototype.drawCell = function() { }; }(window.jsOMS = window.jsOMS || {})); \ No newline at end of file diff --git a/UI/ActionManager.js b/UI/ActionManager.js index 7c965fc..c9d595d 100644 --- a/UI/ActionManager.js +++ b/UI/ActionManager.js @@ -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 // 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. // 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}; @@ -121,7 +121,7 @@ * * @since 1.0.0 */ - jsOMS.UI.ActionManager.prototype.bindListener = function(e, listener) + jsOMS.UI.ActionManager.prototype.bindListener = function(e, listener) { const self = this, actionLength = listener.action.length; diff --git a/UI/Component/Input.js b/UI/Component/Input.js index 64196a2..318dca9 100644 --- a/UI/Component/Input.js +++ b/UI/Component/Input.js @@ -9,7 +9,7 @@ (function (jsOMS) { "use strict"; - + /** @namespace jsOMS.UI.Input*/ jsOMS.Autoloader.defineNamespace('jsOMS.UI.Input'); @@ -81,7 +81,7 @@ { const db = document.getElementById(dataButton); - if(db) { + if(db) { db.click(); } }); diff --git a/UI/Component/Tab.js b/UI/Component/Tab.js index 30379d1..b0dbad5 100644 --- a/UI/Component/Tab.js +++ b/UI/Component/Tab.js @@ -9,9 +9,9 @@ (function (jsOMS) { "use strict"; - + jsOMS.Autoloader.defineNamespace('jsOMS.UI.Component'); - + /** * @constructor * diff --git a/UI/Component/Table.js b/UI/Component/Table.js index db07aa4..712c376 100644 --- a/UI/Component/Table.js +++ b/UI/Component/Table.js @@ -9,9 +9,9 @@ (function (jsOMS) { "use strict"; - + jsOMS.Autoloader.defineNamespace('jsOMS.UI.Component'); - + /** * @constructor * diff --git a/UI/DragNDrop.js b/UI/DragNDrop.js index a0ff9c6..58e7ac3 100644 --- a/UI/DragNDrop.js +++ b/UI/DragNDrop.js @@ -89,7 +89,7 @@ element.addEventListener('dragover', function(e) { e.preventDefault(); - + e.dataTransfer.dropEffect = 'move'; }, false); diff --git a/UI/GeneralUI.js b/UI/GeneralUI.js index 12c433d..9fbc25e 100644 --- a/UI/GeneralUI.js +++ b/UI/GeneralUI.js @@ -23,7 +23,7 @@ this.visObs = null; }; - + /** * Bind button. * @@ -38,12 +38,12 @@ let e = null; if (typeof id !== 'undefined') { e = document.getElementById(id); - } - + } + this.bindHref(e); this.bindLazyLoad(e); }; - + /** * Bind & rebind UI element. * diff --git a/UI/Input/Keyboard/KeyboardManager.js b/UI/Input/Keyboard/KeyboardManager.js index 26a8c0a..b4d904f 100644 --- a/UI/Input/Keyboard/KeyboardManager.js +++ b/UI/Input/Keyboard/KeyboardManager.js @@ -96,8 +96,8 @@ match = false; break; - } - + } + match = true; } diff --git a/UI/Input/Touch/TouchManager.js b/UI/Input/Touch/TouchManager.js index 560d15f..fa5699e 100644 --- a/UI/Input/Touch/TouchManager.js +++ b/UI/Input/Touch/TouchManager.js @@ -100,7 +100,7 @@ relatedTarget: null } ); - + document.dispatchEvent(rightClick); } else if (elapsedTime < 500) { /** global: Event */ diff --git a/UI/Input/Voice/ReadManager.js b/UI/Input/Voice/ReadManager.js index c154015..7254ddd 100644 --- a/UI/Input/Voice/ReadManager.js +++ b/UI/Input/Voice/ReadManager.js @@ -17,11 +17,11 @@ /** global: webkitSpeechRecognition */ /** global: SpeechRecognition */ var SpeechRecognition = typeof SpeechRecognition !== 'undefined' ? SpeechRecognition : typeof webkitSpeechRecognition !== 'undefined' ? webkitSpeechRecognition : null; - + /** global: webkitSpeechGrammarList */ /** global: SpeechGrammarList */ var SpeechGrammarList = typeof SpeechGrammarList !== 'undefined' ? SpeechGrammarList : typeof webkitSpeechGrammarList !== 'undefined' ? webkitSpeechGrammarList : null; - + /** global: webkitSpeechRecognitionEvent */ /** global: SpeechRecognitionEvent */ var SpeechRecognitionEvent = typeof SpeechRecognitionEvent !== 'undefined' ? SpeechRecognitionEvent : typeof webkitSpeechRecognitionEvent !== 'undefined' ? webkitSpeechRecognitionEvent : null; @@ -35,7 +35,7 @@ { this.pitch = 1; this.rate = 1; - this.lang = typeof lang === 'undefined' ? 'en-US' : lang; + this.lang = typeof lang === 'undefined' ? 'en-US' : lang; this.voices = []; this.voice = null; @@ -47,7 +47,7 @@ /** * Read text. - * + * * @param {string} text Text to read * * @return {void} @@ -67,7 +67,7 @@ /** * Set Language. - * + * * @param {string} lang Language id (e.g. en-US) * * @return {void} @@ -81,7 +81,7 @@ /** * Set pitch. - * + * * @param {int} pitch Pitch * * @return {void} @@ -95,7 +95,7 @@ /** * Set rate. - * + * * @param {int} rate Rate * * @return {void} @@ -109,7 +109,7 @@ /** * Get supported voices. - * + * * @return {Array} * * @since 1.0.0 diff --git a/UI/Input/Voice/VoiceManager.js b/UI/Input/Voice/VoiceManager.js index 445dda0..b6b81f4 100644 --- a/UI/Input/Voice/VoiceManager.js +++ b/UI/Input/Voice/VoiceManager.js @@ -17,11 +17,11 @@ /** global: webkitSpeechRecognition */ /** global: SpeechRecognition */ var SpeechRecognition = typeof SpeechRecognition !== 'undefined' ? SpeechRecognition : typeof webkitSpeechRecognition !== 'undefined' ? webkitSpeechRecognition : null; - + /** global: webkitSpeechGrammarList */ /** global: SpeechGrammarList */ var SpeechGrammarList = typeof SpeechGrammarList !== 'undefined' ? SpeechGrammarList : typeof webkitSpeechGrammarList !== 'undefined' ? webkitSpeechGrammarList : null; - + /** global: webkitSpeechRecognitionEvent */ /** global: SpeechRecognitionEvent */ var SpeechRecognitionEvent = typeof SpeechRecognitionEvent !== 'undefined' ? SpeechRecognitionEvent : typeof webkitSpeechRecognitionEvent !== 'undefined' ? webkitSpeechRecognitionEvent : null; @@ -109,7 +109,7 @@ * Set language * * @param {string} lang Language code (e.g. en-US) - * + * * @return {void} * * @since 1.0.0 @@ -125,7 +125,7 @@ * * @param {string} command Command id * @param {callback} callback Callback for command - * + * * @return {void} * * @since 1.0.0 @@ -163,7 +163,7 @@ if(SpeechRecognition === null) { return; } - + this.recognition.stop(); }; }(window.jsOMS = window.jsOMS || {})); \ No newline at end of file diff --git a/UI/UIManager.js b/UI/UIManager.js index 76da7e1..01dc4dc 100644 --- a/UI/UIManager.js +++ b/UI/UIManager.js @@ -163,7 +163,7 @@ { return this.domObserver; }; - + /** * Get general UI * diff --git a/UnhandledException.js b/UnhandledException.js index e7500d8..a7989f2 100644 --- a/UnhandledException.js +++ b/UnhandledException.js @@ -15,7 +15,7 @@ { /** global: jsOMS */ jsOMS.Log.Logger.instance.error(e.error); - + return false; }); }(window.jsOMS = window.jsOMS || {})); \ No newline at end of file diff --git a/Uri/Http.js b/Uri/Http.js index 5af0bab..7c678bf 100644 --- a/Uri/Http.js +++ b/Uri/Http.js @@ -184,7 +184,7 @@ this.fragment = typeof parsed['fragment'] !== 'undefined' ? parsed['fragment'] : ''; this.base = this.scheme + '://' + this.host + this.root; }; - + /** * Set root path. * @@ -341,7 +341,7 @@ { return this.path; }; - + /** * Get Uri path offset * diff --git a/Uri/UriFactory.js b/Uri/UriFactory.js index c94932e..aa324c3 100644 --- a/Uri/UriFactory.js +++ b/Uri/UriFactory.js @@ -51,7 +51,7 @@ * Get query * * @param {string} key - * + * * @return {string} * * @method @@ -76,7 +76,7 @@ * * @since 1.0.0 */ - jsOMS.Uri.UriFactory.clearAll = function() + jsOMS.Uri.UriFactory.clearAll = function() { jsOMS.Uri.UriFactory.uri = {}; @@ -87,7 +87,7 @@ * Clear uri component * * @param {string} key Uri key for component - * + * * @return {boolean} * * @method @@ -109,14 +109,14 @@ * Clear uri components that follow a certain pattern * * @param {string} pattern Uri key pattern to remove - * + * * @return {boolean} * * @method * * @since 1.0.0 */ - jsOMS.Uri.UriFactory.clearLike = function(pattern) + jsOMS.Uri.UriFactory.clearLike = function(pattern) { let success = false; const regexp = new RegExp(pattern); diff --git a/Utils/ArrayUtils.js b/Utils/ArrayUtils.js index 690e409..93d08fb 100644 --- a/Utils/ArrayUtils.js +++ b/Utils/ArrayUtils.js @@ -11,7 +11,7 @@ (function (jsOMS) { "use strict"; - + /** * Trim char from string * @@ -38,7 +38,7 @@ if (typeof current === 'undefined' || !current.hasOwnProperty(pathParts[key])) { return null; } - + current = current[key]; } diff --git a/Utils/Parser/Markdown.js b/Utils/Parser/Markdown.js index 0a3a9e6..dd00341 100644 --- a/Utils/Parser/Markdown.js +++ b/Utils/Parser/Markdown.js @@ -91,14 +91,14 @@ ]; jsOMS.Utils.Parser.Markdown.safeLinksWhitelist = [ - 'http://', 'https://', 'ftp://', 'ftps://', 'mailto:', - 'data:image/png;base64,', 'data:image/gif;base64,', 'data:image/jpeg;base64,', + 'http://', 'https://', 'ftp://', 'ftps://', 'mailto:', + 'data:image/png;base64,', 'data:image/gif;base64,', 'data:image/jpeg;base64,', 'irc:', 'ircs:', 'git:', 'ssh:', 'news:', 'steam:', ]; jsOMS.Utils.Parser.Markdown.definitionData = {}; - jsOMS.Utils.Parser.Markdown.parse = function(text) + jsOMS.Utils.Parser.Markdown.parse = function(text) { jsOMS.Utils.Parser.Markdown.definitionData = {}; 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['interrupted'] === 'undefined' ) { @@ -363,7 +363,7 @@ } text = jsOMS.trim(lineArray['text'], '# '); - + return { element: { name: 'h' + Math.min(6, level), @@ -542,7 +542,7 @@ }; jsOMS.Utils.Parser.Markdown.definitionData['Reference'][id] = data; - + return {hidden: true}; }; @@ -557,7 +557,7 @@ let divider = lineArray['text']; divider = jsOMS.trim(divider); divider = jsOMS.trim(divider, '|'); - + const dividerCells = divider.split('|'); let dividerLength = dividerCells.length; @@ -694,7 +694,7 @@ { let markup = ''; let excerpt = null; - + outerloop: while (excerpt = jsOMS.strpbrk(text, jsOMS.Utils.Parser.Markdown.inlineMarkerList)) { let marker = excerpt[0]; @@ -703,7 +703,7 @@ for (let inlineType in jsOMS.Utils.Parser.Markdown.inlineTypes[marker]) { inlineType = jsOMS.Utils.Parser.Markdown.inlineTypes[marker][inlineType]; - + let inline = jsOMS.Utils.Parser.Markdown['inline' + inlineType](excerptArray); if (typeof inline === 'undefined') { @@ -883,7 +883,7 @@ /*if ((matches = remainder.match(/^[(]\s*+((?:[^ ()]++|[(][^ )]+[)])++)(?:[ ]+("[^"]*"|\'[^\']*\'))?\s*[)]/)) !== null) { element['attributes']['href'] = matches[1]; - + if (typeof matches[2] !== 'undefined') { element['attributes']['title'] = matches[2].substr(1, -1); } @@ -894,7 +894,7 @@ if ((matches = remainder.match(/^\s*\[(.*?)\]/)) !== null) { definition = matches[1].length > 0 ? matches[1] : element['text']; definition = definition.toLowerCase(); - extent += matches[0].length; + extent += matches[0].length; } else { definition = element['text'].toLowerCase(); } @@ -1084,7 +1084,7 @@ 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; @@ -1099,7 +1099,7 @@ return element; }; - jsOMS.Utils.Parser.Markdown.escape = function (text, allowQuotes) + jsOMS.Utils.Parser.Markdown.escape = function (text, allowQuotes) { allowQuotes = typeof allowQuotes !== 'undefined'; @@ -1112,7 +1112,7 @@ if(length > string.length) { return false; - } + } return string.substr(0, length).toLowerCase() === needle.toLowerCase(); }; diff --git a/Utils/StringUtils.js b/Utils/StringUtils.js index 9a64fe2..c150a18 100644 --- a/Utils/StringUtils.js +++ b/Utils/StringUtils.js @@ -11,7 +11,7 @@ (function (jsOMS) { "use strict"; - + /** * Trim char from string * @@ -65,10 +65,10 @@ jsOMS.ltrim = function(str, char) { char = typeof char === 'undefined' ? ' ' : char; - + return str.replace(new RegExp("^[" + char + "]*"), ''); }; - + /** * Count string in string * @@ -84,8 +84,8 @@ jsOMS.substr_count = function(str, substr) { str += ''; substr += ''; - - if (substr.length <= 0) { + + if (substr.length <= 0) { return (str.length + 1); } @@ -95,7 +95,7 @@ while (true) { pos = str.indexOf(substr, pos); - + if (pos >= 0) { ++n; pos += step; @@ -103,7 +103,7 @@ break; } } - + return n; }; @@ -130,7 +130,7 @@ return res; }; - jsOMS.strpbrk = function (haystack, chars) + jsOMS.strpbrk = function (haystack, chars) { const length = haystack.length; for (let i = 0; i < length; ++i) { @@ -155,7 +155,7 @@ map['"'] = '"'; map["'"] = "'"; } - + return text.replace(/[&<>"']/g, function(m) { return map[m]; }); }; }(window.jsOMS = window.jsOMS || {})); diff --git a/Utils/oLib.js b/Utils/oLib.js index 423c7a8..99b7712 100644 --- a/Utils/oLib.js +++ b/Utils/oLib.js @@ -38,13 +38,13 @@ if(typeof current === 'undefined' || !current.hasOwnProperty(pathParts[key])) { return null; } - + current = current[pathParts[key]]; } return current; }; - + /** * Trim char from string * @@ -98,10 +98,10 @@ jsOMS.ltrim = function(str, char) { char = typeof char === 'undefined' ? ' ' : char; - + return str.replace(new RegExp("^[" + char + "]*"), ''); }; - + /** * Count string in string * @@ -117,8 +117,8 @@ jsOMS.substr_count = function(str, substr) { str += ''; substr += ''; - - if (substr.length <= 0) { + + if (substr.length <= 0) { return (str.length + 1); } @@ -128,7 +128,7 @@ while (true) { pos = str.indexOf(substr, pos); - + if (pos >= 0) { ++n; pos += step; @@ -136,7 +136,7 @@ break; } } - + return n; }; @@ -443,7 +443,7 @@ return typeof variable !== 'undefined' && variable !== null; }; - jsOMS.strpbrk = function (haystack, char_list) + jsOMS.strpbrk = function (haystack, char_list) { const length = haystack.length; for (let i = 0; i < length; ++i) { @@ -468,7 +468,7 @@ map['"'] = '"'; map["'"] = "'"; } - + return text.replace(/[&<>"']/g, function(m) { return map[m]; }); }; }(window.jsOMS = window.jsOMS || {})); diff --git a/Views/TableView.js b/Views/TableView.js index d13d154..69fa6ae 100644 --- a/Views/TableView.js +++ b/Views/TableView.js @@ -1,6 +1,6 @@ (function (jsOMS) { "use strict"; - + jsOMS.TableView = function () { this.table = null; }; diff --git a/Views/ViewAbstract.js b/Views/ViewAbstract.js index 0f167ee..1037f2d 100644 --- a/Views/ViewAbstract.js +++ b/Views/ViewAbstract.js @@ -1,6 +1,6 @@ (function (jsOMS) { "use strict"; - + jsOMS.ViewAbstract = function () { this.element = null;