lint & update docs

This commit is contained in:
jean-emmanuel 2018-12-29 11:00:54 +01:00
parent 868688b29f
commit 214a95e816
2 changed files with 3 additions and 2 deletions

View file

@ -4,7 +4,7 @@ module.exports = class OscReceiver {
constructor(options) {
var {prefix, address, value, parent, propName} = options
var {address, value, parent, propName} = options
try {
this.value = JSON.parse(value)
@ -29,7 +29,7 @@ module.exports = class OscReceiver {
if (address) this.address = address
if (this.address[0] !== '/') {
this.prefix = this.parent.getProp('address') || this.parent.resolveProp('address', undefined, false, this)
this.prefix = this.parent.getProp('address') || this.parent.resolveProp('address', undefined, false, this)
if (this.prefix[this.prefix.length - 1] !== '/') this.prefix += '/'
}