code: fix lint & syntax errors

This commit is contained in:
jean-emmanuel 2019-03-19 11:46:06 +01:00
parent c2a03494fd
commit a350c34e7e
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})
}