remote control: make /GET reply to /GET (with widget address in args) (issue #56)
This commit is contained in:
parent
1849f2a6a9
commit
d7ce10c5e2
2 changed files with 44 additions and 4 deletions
|
|
@ -56,7 +56,7 @@ var callbacks = {
|
|||
],
|
||||
nosync: true
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
'/GET':function(args) {
|
||||
|
|
@ -76,12 +76,12 @@ var callbacks = {
|
|||
|
||||
}
|
||||
|
||||
if (!widgets.length) return
|
||||
|
||||
for (var i = widgets.length - 1; i >= 0; i--) {
|
||||
|
||||
return widgets[i].sendValue({
|
||||
target:[target],
|
||||
target: [target],
|
||||
address: '/GET',
|
||||
preArgs: [idOrAddress, ...preArgs],
|
||||
nosync: true
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue