mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Expose child components.
This commit is contained in:
parent
fe019f926e
commit
4ef4a293ea
1 changed files with 4 additions and 0 deletions
|
@ -121,6 +121,10 @@ var Component = Base.extend(Callback, /** @lends Component# */{
|
||||||
} else { // isPane
|
} else { // isPane
|
||||||
element = childPane._table;
|
element = childPane._table;
|
||||||
}
|
}
|
||||||
|
// Add child components directly to this component, so we can access
|
||||||
|
// it through the same path as in the components object literal that
|
||||||
|
// was passed.
|
||||||
|
Base.set(this, childPane._components);
|
||||||
} else {
|
} else {
|
||||||
element = this._input = create(meta.tag || 'input', {
|
element = this._input = create(meta.tag || 'input', {
|
||||||
class: 'palettejs-input',
|
class: 'palettejs-input',
|
||||||
|
|
Loading…
Reference in a new issue