From fa7da92b625cad88e8467d95640e45691c829091 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 23 Jun 2010 13:28:47 +0800 Subject: [PATCH] Roo/Document.js --- Roo/Document.js | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/Roo/Document.js b/Roo/Document.js index 9623849923..35f82f60b6 100644 --- a/Roo/Document.js +++ b/Roo/Document.js @@ -4,6 +4,31 @@ */ /** + * + * This needs some more thought.. + * + * compontent is taken.. + * + * Mypart.xyx = new Roo.XComponent({ + + parent : 'Mypart.xyz', + order : '001', + name : 'xxxx' + region : 'xxxx' + disabled : function() {} + + items : [ // technically only one component.. + { + xtype : 'NestedLayoutPanel', + // technicall + } + ] + *}) + * + * + * + * + * * @class Roo.Documents * @extends Roo.data.Observable * @@ -163,9 +188,17 @@ Roo.extend(Roo.Document, Roo.util.Observable, { * */ - build : function(parent, onComplete) + build : function(parent, onCompleteFn) { - onComplete = onComplete || Roo.emptyFn; + var onComplete = function () { + if (onCompleteFn) { + onCompleteFn.call(this); + } + Roo.MessageBox.hide(); + + + + } var _this = this; var cmp = function(a,b) { return String(a).toUpperCase() > String(b).toUpperCase() ? 1 : -1; -- 2.39.2