remote control: rename /EDIT_SOFT to /EDIT/MERGE

This commit is contained in:
jean-emmanuel 2017-12-21 06:41:30 +01:00
parent c904b941ba
commit 185d4c6b80
3 changed files with 7 additions and 2 deletions

View file

@ -17,6 +17,8 @@
- plots: **new** `image` widget
- remote control
- **removed** deprecated `/EXEX`
- renamed `/EDIT_SOFT` to `/EDIT/MERGE`
## 0.21.3

View file

@ -16,7 +16,7 @@ Apply a set of options to an existing widget by replacing the old ones with the
!!! warning ""
Editing a widget can be cpu expensive, hence updating the UI continuously is not a good idea
## `/EDIT_SOFT id options`
## `/EDIT_/MERGE id options`
Apply a set of options to an existing widget by merging them to the widget's options.

View file

@ -21,7 +21,7 @@ var callbacks = {
updateDom(container,data,true)
}
},
'/EDIT_SOFT': function(args) {
'/EDIT/MERGE': function(args) {
if (READ_ONLY) return
@ -83,6 +83,9 @@ var callbacks = {
}
}
// backward-compatibility
callbacks['/EDIT_SOFT'] = callbacks['/EDIT/MERGE']
module.exports = {
exec: function(name, args){
if (callbacks[name]) {