cleanup and tests added for ci/cd

This commit is contained in:
Dennis Eichhorn 2019-11-20 22:27:51 +01:00
parent fd791cca05
commit da4032f5d6
23 changed files with 125 additions and 121 deletions

View File

@ -57,6 +57,7 @@
visible: true visible: true
} }
}; };
this.chart.subtype = 'candlestick'; this.chart.subtype = 'candlestick';
}; };

View File

@ -53,6 +53,7 @@
visible: true visible: true
} }
}; };
this.chart.subtype = 'waterfall'; this.chart.subtype = 'waterfall';
}; };

View File

@ -54,6 +54,7 @@
visible: true visible: true
} }
}; };
this.chart.subtype = 'scatterplot'; this.chart.subtype = 'scatterplot';
}; };

View File

@ -103,7 +103,7 @@ export class EventManager {
{ {
if (this.callbacks.hasOwnProperty(group)) { if (this.callbacks.hasOwnProperty(group)) {
return this.triggerSingleEvent(group, id, data); return this.triggerSingleEvent(group, id, data);
} }p
const allGroups = Object.keys(this.callbacks), const allGroups = Object.keys(this.callbacks),
regex = new RegExp(group), regex = new RegExp(group),

View File

@ -8,6 +8,7 @@
this.connection = null; this.connection = null;
this.messages = []; this.messages = [];
}; };
jsOMS.Client.prototype.setMessage = function(id, callback) { jsOMS.Client.prototype.setMessage = function(id, callback) {
this.messages[id] = callback; this.messages[id] = callback;
}; };

View File

@ -38,8 +38,8 @@ export class Tab {
this.bindElement(e); this.bindElement(e);
} }
} else { } else {
const tabs = document.getElementsByClassName('tabview'), const tabs = document.getElementsByClassName('tabview');
length = !tabs ? 0 : tabs.length; const length = !tabs ? 0 : tabs.length;
for (let i = 0; i < length; ++i) { for (let i = 0; i < length; ++i) {
this.bindElement(tabs[i]); this.bindElement(tabs[i]);