mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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
|
||||
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 {
|
||||
element = this._input = create(meta.tag || 'input', {
|
||||
class: 'palettejs-input',
|
||||
|
|
Loading…
Reference in a new issue