widget: add path splitting support in base class (triggered by this.split property)

This commit is contained in:
jean-emmanuel 2016-10-20 19:13:49 +02:00
parent ea56f48388
commit f525df4272

View file

@ -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++
}
}
}