Fix docblocks

This commit is contained in:
Dennis Eichhorn 2017-11-05 17:39:08 +01:00
parent e53e599f1b
commit d598ee34bd
19 changed files with 56 additions and 43 deletions

View File

@ -124,7 +124,7 @@
inherited : false,
clone : function( index ) {
var cloned = {
const cloned = {
index : ( typeof index === 'number' ? index : this.index ),
name : this.name,
mtllib : this.mtllib,

View File

@ -61,7 +61,7 @@
.datum(format);
rect.append("title")
.text(function(d) { return; });
.text(function(d) { });
svg.selectAll(".month")
.data(function(d) { return d3.time.months(new Date(parseInt(d.name), 0, 1), new Date(parseInt(d.name) + 1, 0, 1)); })

View File

@ -221,6 +221,10 @@
jsOMS.Chart.ChartAbstract.prototype.findAxisDomain = function ()
{
for (let id in this.axis) {
if(!this.axis.hasOwnProperty(id)) {
continue;
}
this.axis[id].max = d3.max(this.dataset, function (m)
{
return d3.max(m.points, function (d)
@ -528,7 +532,7 @@
0,
this.dimension.height
- this.margin.top
- this.margin.bottom,
- this.margin.bottom
], 0.3);
} else {
return d3.scale.linear().range([
@ -586,7 +590,7 @@
jsOMS.Chart.ChartAbstract.prototype.calculateDimension = function ()
{
let box = this.chartSelect.node().getBoundingClientRect()
let box = this.chartSelect.node().getBoundingClientRect();
this.dimension = {
width: box.width,

View File

@ -41,7 +41,7 @@
*/
jsOMS.Config.Options.prototype.set = function (key, value, overwrite)
{
overwrite = typeof overwrite === 'bool' ? overwrite : false;
overwrite = typeof overwrite === 'undefined' ? overwrite : false;
if (overwrite || typeof this.options[key] === 'undefined') {
this.options[key] = value;

View File

@ -99,7 +99,7 @@
* Executes the callback specified for this group if all events are finished
*
* @param {string|int} group Group id
* @param {string|int} id Event id
* @param {string|int} [id] Event id
* @param {Object} [data] Data for event
*
* @return {boolean}
@ -153,8 +153,8 @@
*
* @param {string|int} group Group id
* @param {function} callback Callback
* @param {boolean} remove Should be removed after execution
* @param {boolean} reset Reset after triggering
* @param {boolean} [remove] Should be removed after execution
* @param {boolean} [reset] Reset after triggering
*
* @return {boolean}
*

View File

@ -337,7 +337,7 @@
{
context = typeof context === 'undefined' ? {} : context;
this.write(message, context, context);
this.write(message, context, level);
};
/**

View File

@ -132,7 +132,6 @@ with ({p: MathProcessor.prototype}) {
}
};
p.error = function (s) {
return;
//throw new Error("MathProcessor: " + (s || "Wrong expression"));
};
}

View File

@ -21,7 +21,7 @@
jsOMS.Message.Notification.App.AppNotification.prototype.setStatus = function(status)
{
this.status = status;
}
};
jsOMS.Message.Notification.App.AppNotification.prototype.requestPermission = function()
{

View File

@ -21,7 +21,7 @@
jsOMS.Message.Notification.Browser.BrowserNotification.prototype.setStatus = function(status)
{
this.status = status;
}
};
jsOMS.Message.Notification.Browser.BrowserNotification.prototype.requestPermission = function()
{

View File

@ -15,6 +15,6 @@
jsOMS.Message.Notification.NotificationType = Object.freeze({
APP_NOTIFICATION: 1,
BROWSER_NOTIFICATION: 2,
BROWSER_NOTIFICATION: 2
});
}(window.jsOMS = window.jsOMS || {}));

View File

@ -20,6 +20,6 @@
IE: 'msie',
EDGE: 'edge',
CHROME: 'chrome',
BLINK: 'blink',
BLINK: 'blink'
});
}(window.jsOMS = window.jsOMS || {}));

View File

@ -55,7 +55,7 @@
*
* @param {string} key Response key
* @param {Array|Object} data Date to use in callback
* @param {string} [request] Request id for request specific execution
* @param {jsOMS.Message.Request.Request} [request] Request id for request specific execution
*
* @method
*

View File

@ -62,7 +62,7 @@
/**
* Bind DOM elment
*
* @param {Object} id DOM elment
* @param {string} id DOM elment
*
* @since 1.0.0
*/

View File

@ -83,24 +83,22 @@
jsOMS.preventAll(event);
if (elapsedTime > 300 && distY < 3 && distX < 3) {
let rightClick = document.createEvent('MouseEvents');
rightClick.initMouseEvent(
'click',
true, // canBubble
true, // cancelable
window, // view - set to the window object
1, // detail - # of mouse clicks
touch.pageX, // screenX - the page X coordinate
touch.pageY, // screenY - the page Y coordinate
touch.pageX, // clientX - the window X coordinate
touch.pageY, // clientY - the window Y coordinate
false, // ctrlKey
false, // altKey
false, // shiftKey
false, // metaKey
2, // button - 1 = left, 2 = right
null // relatedTarget
let rightClick = MouseEvent('click',
{
bubbles: true,
cancelable: true,
view: window,
screenX: touch.pageX,
screenY: touch.pageY,
clientX: touch.pageX,
clientY: touch.pageY,
ctrlKey: false,
altKey: false,
shiftKey: false,
metaKey: false,
button: 2,
relatedTarget: null
}
);
document.dispatchEvent(rightClick);

View File

@ -110,7 +110,7 @@
/**
* Get supported voices.
*
* @return {array}
* @return {Array}
*
* @since 1.0.0
*/

View File

@ -71,7 +71,7 @@
this.recognition.grammars = this.speechRecognitionList;
}
this.recognition.onstart = function() {}
this.recognition.onstart = function() {};
this.recognition.onresult = function(event) {
let result = jsOMS.trim(event.results[event.resultIndex][0].transcript);
@ -82,18 +82,18 @@
console.log('found');
self.commands[result]();
}
}
};
this.recognition.onspeechend = function() {
}
};
this.recognition.onnomatch = function(event) {
jsOMS.Log.Logger.instance.warning('Couldn\'t recognize speech');
}
};
this.recognition.onerror = function(event) {
jsOMS.Log.Logger.instance.warning('Error during speech recognition: ' + event.error);
}
};
};
/**
@ -127,7 +127,7 @@
* Add command/grammar and callback.
*
* @param {string} command Command id
* @param {Callback} callback Callback for command
* @param {callback} callback Callback for command
*
* @return {void}
*

View File

@ -126,6 +126,10 @@
keyValPairs = query.split('&');
for (pairNum in keyValPairs) {
if(!keyValPairs.hasOwnProperty(pairNum)) {
continue;
}
const key = keyValPairs[pairNum].split('=')[0];
if (!key.length) {

View File

@ -19,7 +19,7 @@
* @param {Object} data Object
* @param {string} delim Path delimiter
*
* @return {mixed}
* @return
*
* @function
*
@ -31,6 +31,10 @@
let current = data;
for(let key in pathParts) {
if(!pathParts.hasOwnProperty(key)) {
continue;
}
if(current === null) {
return null;
}

View File

@ -19,7 +19,7 @@
* @param {Object} data Object
* @param {string} delim Path delimiter
*
* @return {mixed}
* @return
*
* @function
*
@ -31,6 +31,10 @@
let current = data;
for(let key in pathParts) {
if(!pathParts.hasOwnProperty(key)) {
continue;
}
if(current === null) {
return null;
}