osc props: fix wrong isArray call (https://github.com/git-moss/DrivenByMoss/issues/70)
This commit is contained in:
parent
122a6eeda4
commit
6bf92adec0
2 changed files with 6 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ module.exports = class OscReceiver {
|
|||
|
||||
if (typeof args !== 'object') args = [args]
|
||||
var preArgs = this.parent.getProp('preArgs') || []
|
||||
if (!isArray(preArgs) && preArgs !== '') preArgs = [preArgs]
|
||||
if (!Array.isArray(preArgs) && preArgs !== '') preArgs = [preArgs]
|
||||
if (args.length >= preArgs.length) {
|
||||
for (var i in preArgs) {
|
||||
if (preArgs[i] !== args[i]) return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue