prop inheritance: when id == this.id, interpret as this, do not look for another widget
This commit is contained in:
parent
d5dad476f6
commit
525c3066be
1 changed files with 1 additions and 0 deletions
|
|
@ -228,6 +228,7 @@ class Widget extends EventEmitter {
|
|||
|
||||
}
|
||||
|
||||
if (id == this.getProp('id')) id = 'this'
|
||||
|
||||
var widgets = id == 'parent' && this.parent ?
|
||||
[this.parent] : id == 'this' ? [this] :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue