lint: illegal whitespaces

This commit is contained in:
jean-emmanuel 2018-08-01 18:43:19 +02:00
parent 94beb77eb9
commit 38981d1da6
3 changed files with 5 additions and 5 deletions

View file

@ -73,7 +73,7 @@ module.exports = class Switch extends Widget {
}
var label = isArray ? values[k]: k
if (this.getProp('showValues') && !isArray) label = label + ': ' + (this.stringValues[this.stringValues.length - 1] || values[k])
if (this.getProp('showValues') && !isArray) label = label + ': ' + (this.stringValues[this.stringValues.length - 1] || values[k])
this.widget.appendChild(DOM.create(`
<div class="value"> ${iconify(label)}</div>

View file

@ -238,8 +238,8 @@ module.exports = class MultiXy extends Pad {
}
getSplit() {
getSplit() {
return this.getProp('split')?
typeof this.getProp('split') == 'object' && this.getProp('split').length == 2 * this.npoints ?
this.getProp('split')

View file

@ -430,14 +430,14 @@ module.exports = class Range extends Widget {
}
getSplit() {
getSplit() {
return this.getProp('split')?
typeof this.getProp('split') == 'object' && this.getProp('split').length == 2 ?
this.getProp('split')
: [this.getProp('address') + '/low', this.getProp('address') + '/high']
: false
}
onPropChanged(propName, options, oldPropValue) {