Expose child components.

This commit is contained in:
Jürg Lehni 2014-10-02 19:20:03 +02:00
parent fe019f926e
commit 4ef4a293ea

View file

@ -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',