code: fix lint & syntax errors

This commit is contained in:
jean-emmanuel 2019-03-19 11:46:06 +01:00
parent ced7250d98
commit 0358f719e4
2 changed files with 3 additions and 3 deletions

View file

@ -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})
}

View file

@ -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)
})