panels: fix dynamic color regression

This commit is contained in:
bordun 2018-10-27 13:22:42 +02:00
parent 6b4ce7e66b
commit 67ec080ddd
3 changed files with 9 additions and 2 deletions

View file

@ -182,7 +182,7 @@ class Panel extends Container {
case 'color':
for (var w of this.children) {
w.onPropChanged('color')
if (w) w.onPropChanged('color')
}
return

View file

@ -33,7 +33,7 @@ module.exports = class _matrix_base extends Container {
case 'color':
for (var w of this.children) {
w.onPropChanged('color')
if (w) w.onPropChanged('color')
}
return