lint & update docs
This commit is contained in:
parent
868688b29f
commit
214a95e816
2 changed files with 3 additions and 2 deletions
|
|
@ -127,6 +127,7 @@
|
|||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="push_push">push<a class="headerlink" href="#push_push" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="push_doubleTap">doubleTap<a class="headerlink" href="#push_doubleTap" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to make the button require a double tap to be pushed instead of a single tap |
|
||||
| <h4 id="push_on">on<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#push_on" title="Permanent link">¶</a></h4> | `*` | <code>1</code> | Set to `null` to send send no argument in the osc message<br/><br/>Can be an `object` if the type needs to be specified (see preArgs) |
|
||||
| <h4 id="push_off">off<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#push_off" title="Permanent link">¶</a></h4> | `*` | <code>0</code> | Set to `null` to send send no argument in the osc message<br/><br/>Can be an `object` if the type needs to be specified (see preArgs) |
|
||||
| <h4 id="push_norelease">norelease<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#push_norelease" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to prevent sending any osc message when releasing the button |
|
||||
|
|
|
|||
|
|
@ -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