code: fix lint & syntax errors
This commit is contained in:
parent
c2a03494fd
commit
a350c34e7e
2 changed files with 3 additions and 3 deletions
|
|
@ -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})
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue