widget: add path splitting support in base class (triggered by this.split property)
This commit is contained in:
parent
ea56f48388
commit
f525df4272
1 changed files with 17 additions and 1 deletions
|
|
@ -13,7 +13,23 @@ _widget_base.prototype.sendValue = function() {
|
|||
target:this.widgetData.target,
|
||||
path:this.widgetData.path,
|
||||
precision:this.widgetData.precision,
|
||||
args:args
|
||||
args:args,
|
||||
syncOnly:this.split?true:false
|
||||
})
|
||||
|
||||
if (this.split) {
|
||||
var n = 0
|
||||
for (i in this.split) {
|
||||
sendOsc({
|
||||
target:this.widgetData.target,
|
||||
path:this.split[i],
|
||||
precision:this.widgetData.precision,
|
||||
args:this.widgetData.preArgs.concat(this.value[n]),
|
||||
sync:false
|
||||
|
||||
})
|
||||
n++
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue