dynamic edit: inverted test that triggers prop cache recreation (#401)

This commit is contained in:
jean-emmanuel 2018-10-23 08:32:15 +02:00
parent 0512f35937
commit 5b7d2fb449

View file

@ -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()
}