remote control: add /EDIT/GET, and a nosync flag in server/osc/sending method to prevent broadcasting
This commit is contained in:
parent
185d4c6b80
commit
a263233bbd
3 changed files with 22 additions and 3 deletions
|
|
@ -38,7 +38,25 @@ var callbacks = {
|
|||
updateDom(container,data,true)
|
||||
}
|
||||
},
|
||||
'/EDIT/GET': function(args) {
|
||||
|
||||
if (!Array.isArray(args) || args.length != 2) return
|
||||
|
||||
var [target, id] = args,
|
||||
widgets = widgetManager.getWidgetById(id)
|
||||
|
||||
for (var i = widgets.length - 1; i >= 0; i--) {
|
||||
return widgets[i].sendValue({
|
||||
target: [target],
|
||||
address: '/EDIT/GET',
|
||||
v: [
|
||||
id,
|
||||
JSON.stringify(widgets[i].props)
|
||||
],
|
||||
nosync: true
|
||||
})
|
||||
}
|
||||
},
|
||||
'/GET':function(args) {
|
||||
|
||||
var [target, idOrAddress, ...preArgs] = args,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue