matrices: dynamic color update for all

This commit is contained in:
jean-emmanuel 2018-10-19 10:17:22 +02:00
parent 38b6785882
commit 59c0ffe55f
2 changed files with 16 additions and 16 deletions

View file

@ -25,4 +25,20 @@ module.exports = class _matrix_base extends Container {
}
onPropChanged(propName, options, oldPropValue) {
if (super.onPropChanged(...arguments)) return true
switch (propName) {
case 'color':
for (var w of this.children) {
w.onPropChanged('color')
}
return
}
}
}

View file

@ -97,20 +97,4 @@ module.exports = class Multifader extends _matrix_base {
}
onPropChanged(propName, options, oldPropValue) {
if (super.onPropChanged(...arguments)) return true
switch (propName) {
case 'color':
for (var w of this.children) {
w.onPropChanged('color')
}
return
}
}
}