widget: updatea dvanced syntax update routine

This commit is contained in:
jean-emmanuel 2022-01-14 13:55:18 +01:00
parent 8ac1c1991f
commit 286cf2fbd2

View file

@ -404,7 +404,7 @@ class Widget extends EventEmitter {
if (
// if prop/osc listeners/custom vars have changed (@{} / OSC{} / VAR{})
// refresh the widget's props cache and update linked props bindings
propNames.map(x => this.props[x]).some(x => typeof x === 'string' && x.match(/OSC\{|@\{|VAR\{/))
propNames.map(x => this.props[x]).some(x => typeof x === 'string' && x.match(/(OSC|@|VAR|IMPORT)\{/))
|| propNames.some(n => linkedProps.includes(n))
) {
this.createPropsCache()