panel: autopurge childrenHashes list
This commit is contained in:
parent
8bbcec7768
commit
71289f52e3
1 changed files with 6 additions and 3 deletions
|
|
@ -230,10 +230,13 @@ class Panel extends Widget {
|
|||
switch (propName) {
|
||||
|
||||
case 'color':
|
||||
for (var h of this.childrenHashes) {
|
||||
if (widgetManager.widgets[h]) {
|
||||
widgetManager.widgets[h].onPropChanged('color')
|
||||
for (var i = this.childrenHashes.length - 1; i >= 0; i--) {
|
||||
let widget = widgetManager.widgets[this.childrenHashes[i]]
|
||||
if (!widget) {
|
||||
this.childrenHashes.splice(i, 1)
|
||||
continue
|
||||
}
|
||||
widget.onPropChanged('color')
|
||||
}
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue