From ff922bb8a3e881d420b88aa38411be044b914d9e Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 23 Jun 2010 13:38:08 +0800 Subject: [PATCH] Roo/Document.js --- Roo/Document.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Roo/Document.js b/Roo/Document.js index 0f36c0c966..0cd08d7937 100644 --- a/Roo/Document.js +++ b/Roo/Document.js @@ -64,6 +64,14 @@ Roo.apply(Roo.XComponent, */ buildCompleted : false, + /** + * @property topModule + * the upper most module - uses document.element as it's constructor. + * @type Array + */ + + topModule : false, + /** * @property modules * array of modules to be created by registration system. @@ -72,8 +80,6 @@ Roo.apply(Roo.XComponent, modules : [], - - /** * Register components to be built later. @@ -141,6 +147,8 @@ Roo.apply(Roo.XComponent, Roo.each(modules , function (obj) { + obj.parent = this.toObject(obj.parent); + if (!obj.parent) { this.topModule = obj; return; -- 2.39.2