summaryrefslogtreecommitdiffstats
path: root/res/controllers/midi-components-0.0.js
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-05-11 23:19:39 +0200
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-05-11 23:36:59 +0200
commit1631fb21332d13c0a5d5c6184fc4c03a405bf3cd (patch)
tree1e55f8679ebe835ca022f99de5be37c63ceca6ee /res/controllers/midi-components-0.0.js
parentcfc90a63fa21d7decee9516a73a61368d676babc (diff)
midi-components: Fix naming of connection callback parameter
Diffstat (limited to 'res/controllers/midi-components-0.0.js')
-rw-r--r--res/controllers/midi-components-0.0.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/controllers/midi-components-0.0.js b/res/controllers/midi-components-0.0.js
index 2416645659..b00cb33db9 100644
--- a/res/controllers/midi-components-0.0.js
+++ b/res/controllers/midi-components-0.0.js
@@ -349,9 +349,9 @@
connect: function() {
Button.prototype.connect.call(this); // call parent connect
if (undefined !== this.group && this.colorKey !== undefined) {
- this.connections[1] = engine.makeConnection(this.group, this.colorKey, function(id) {
+ this.connections[1] = engine.makeConnection(this.group, this.colorKey, function(color) {
if (engine.getValue(this.group, this.outKey)) {
- this.outputColor(id);
+ this.outputColor(color);
}
});
}