diff options
author | Christian <git-developer@users.noreply.github.com> | 2020-11-26 08:49:53 +0100 |
---|---|---|
committer | Christian <git-developer@users.noreply.github.com> | 2020-11-26 08:49:53 +0100 |
commit | 076ea391555046a8b6f3e7e49d27b34bdd765863 (patch) | |
tree | 6917096f30a86008d6461c124ca9bf35504f8b9b | |
parent | f306e29cace28cd009286a04c839270e265d5579 (diff) |
refactor(BCR2000): avoid object creation for prototype definition
-rw-r--r-- | res/controllers/midi-components-extension.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/res/controllers/midi-components-extension.js b/res/controllers/midi-components-extension.js index 109c4172cb..b99d36c9d0 100644 --- a/res/controllers/midi-components-extension.js +++ b/res/controllers/midi-components-extension.js @@ -416,11 +416,8 @@ * @public */ unshift: function() { - /* undefined when called from Component constructor on prototype creation */ - if (this.activeLayer !== undefined) { - log.debug("LayerManager.unshift()"); - this.activeLayer.applyLayer(this.defaultLayer()); - } + log.debug("LayerManager.unshift()"); + this.activeLayer.applyLayer(this.defaultLayer()); }, /** |