dynamic edit: inverted test that triggers prop cache recreation (#401)
This commit is contained in:
parent
0512f35937
commit
5b7d2fb449
1 changed files with 2 additions and 2 deletions
|
|
@ -35,8 +35,8 @@ function updateWidget(widget, options={}) {
|
|||
if (
|
||||
// if prop/osc listeners have changed (@{} / OSC{})
|
||||
// refresh the widget's props cache and update linked props bindings
|
||||
!propValues.some(x => typeof x === 'string' && x.match(/OSC\{|@\{/))
|
||||
&& !propNames.some(n => linkedProps.includes(n))
|
||||
propValues.some(x => typeof x === 'string' && x.match(/OSC\{|@\{/))
|
||||
|| propNames.some(n => linkedProps.includes(n))
|
||||
) {
|
||||
widget.createPropsCache()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue