|
|
@ -1050,6 +1050,15 @@ export default class Component extends StyleableModel { |
|
|
return coll ? coll.parent : null; |
|
|
return coll ? coll.parent : null; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Return all parents of the component. |
|
|
|
|
|
* @returns {Array<[Component]>} |
|
|
|
|
|
*/ |
|
|
|
|
|
parents() { |
|
|
|
|
|
const parent = this.parent(); |
|
|
|
|
|
return parent ? [parent].concat(parent.parents()) : []; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Script updated |
|
|
* Script updated |
|
|
* @private |
|
|
* @private |
|
|
|