From a350c34e7e8fc37559f9605b1dd3f1c29fca70f4 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 19 Mar 2019 11:46:06 +0100 Subject: [PATCH] code: fix lint & syntax errors --- src/client/app/widgets/buttons/switch.js | 4 ++-- src/server/midi.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/app/widgets/buttons/switch.js b/src/client/app/widgets/buttons/switch.js index 86d8d32e..ae4fabe5 100644 --- a/src/client/app/widgets/buttons/switch.js +++ b/src/client/app/widgets/buttons/switch.js @@ -67,7 +67,7 @@ module.exports = class Switch extends Widget { var index = 0, node = e.target - if (node === this.widget || !this.widget.contains(node)) return + if (node === this.widget || !this.widget.contains(node)) return while ( (node = node.previousSibling) ) { if (node.nodeType != 3) { @@ -82,7 +82,7 @@ module.exports = class Switch extends Widget { } this.on('draginit', dragCallback , {element: this.widget}) - if (this.getProp('traversing') this.on('drag', dragCallback , {element: this.widget}) + if (this.getProp('traversing')) this.on('drag', dragCallback , {element: this.widget}) } diff --git a/src/server/midi.js b/src/server/midi.js index 5369babf..2439340d 100644 --- a/src/server/midi.js +++ b/src/server/midi.js @@ -70,7 +70,7 @@ class MidiConverter { static list() { - PythonShell.run('python/list.py', pythonOptions, function (err, results) { + PythonShell.run('python/list.py', pythonOptions, function(err, results) { if (err) console.error(err) MidiConverter.parseIpc(results) })