lint & update docs
This commit is contained in:
parent
868688b29f
commit
214a95e816
2 changed files with 3 additions and 2 deletions
|
|
@ -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 += '/'
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue