remote control: rename /EDIT_SOFT to /EDIT/MERGE
This commit is contained in:
parent
7a81aa8e24
commit
73b2d6b2c0
3 changed files with 7 additions and 2 deletions
|
|
@ -17,6 +17,8 @@
|
|||
- plots: **new** `image` widget
|
||||
- remote control
|
||||
- **removed** deprecated `/EXEX`
|
||||
- renamed `/EDIT_SOFT` to `/EDIT/MERGE`
|
||||
|
||||
|
||||
## 0.21.3
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue