From 4ef4a293ea64a1ba4f0e98b5a7ba16fea661a4d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 2 Oct 2014 19:20:03 +0200 Subject: [PATCH] Expose child components. --- src/ui/Component.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/Component.js b/src/ui/Component.js index 56b6d3cd..72b32dcd 100644 --- a/src/ui/Component.js +++ b/src/ui/Component.js @@ -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',