prop inheritance: when id == this.id, interpret as this, do not look for another widget

This commit is contained in:
jean-emmanuel 2018-02-14 19:42:13 +01:00
parent 2a95bbf88d
commit 1b8938ed76

View file

@ -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] :