refactor demodulator classes, part 2

This commit is contained in:
Jakob Ketterl
2020-05-02 01:07:44 +02:00
parent b8f7686a6d
commit d9a818525d
3 changed files with 70 additions and 41 deletions

View File

@ -21,7 +21,7 @@ var Modes = {
this.panels.push(el);
},
updatePanels: function() {
var init_complete = this.modes && this.features;
var init_complete = this.modes.length && Object.keys(this.features).length;
this.panels.forEach(function(p) {
p.render();
if (init_complete) {