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'),
line = '',
lineFirstChar = '',
line = '',
lineFirstChar = '',
lineSecondChar = '',
lineLength = 0,
result = [],

View File

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

View File

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

View File

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

View File

@ -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
*

View File

@ -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
*

View File

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

View File

@ -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

View File

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

View File

@ -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);

View File

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

View File

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

View File

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

View File

@ -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];

View File

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

View File

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

View File

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

View File

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

View File

@ -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);

View File

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

View File

@ -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)
{

View File

@ -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];

View File

@ -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];

View File

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

View File

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

View File

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

View File

@ -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];

View File

@ -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];

View File

@ -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 || {}));

View File

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

View File

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

View File

@ -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 || {}));

View File

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

View File

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

View File

@ -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

View File

@ -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)

View File

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

View File

@ -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

View File

@ -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 */

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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 || {}));

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
// 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;

View File

@ -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();
}
});

View File

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

View File

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

View File

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

View File

@ -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.
*

View File

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

View File

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

View File

@ -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

View File

@ -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 || {}));

View File

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

View File

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

View File

@ -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
*

View File

@ -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);

View File

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

View File

@ -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();
};

View File

@ -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 || {}));

View File

@ -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 || {}));

View File

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

View File

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