diff options
Diffstat (limited to 'res/controllers/common-controller-scripts.js')
-rw-r--r-- | res/controllers/common-controller-scripts.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/res/controllers/common-controller-scripts.js b/res/controllers/common-controller-scripts.js index bcc8602f6c..68eed58954 100644 --- a/res/controllers/common-controller-scripts.js +++ b/res/controllers/common-controller-scripts.js @@ -21,7 +21,7 @@ // Returns an ASCII byte array for the string String.prototype.toInt = function() { - const a = new Array(); + const a = []; for (let i = 0; i < this.length; i++) { a[i] = this.charCodeAt(i); } @@ -124,6 +124,7 @@ var colorCodeToObject = function(colorCode) { }; }; +/* eslint @typescript-eslint/no-empty-function: "off" */ var script = function() { }; @@ -494,7 +495,6 @@ script.softStart = function(channel, control, value, status, group, factor) { }; // bpm - Used for tapping the desired BPM for a deck - var bpm = function() { }; @@ -584,6 +584,7 @@ var Controller = function() { Controller.prototype.addButton = function(buttonName, button, eventHandler) { if (eventHandler) { + /* eslint @typescript-eslint/no-this-alias: "off" */ const executionEnvironment = this; const handler = function(value) { button.state = value; |