You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2007/10/11 07:37:40 UTC
svn commit: r583717 -
/incubator/xap/trunk/codebase/src/xap/session/ClientSession.js
Author: jmargaris
Date: Thu Oct 11 00:37:39 2007
New Revision: 583717
URL: http://svn.apache.org/viewvc?rev=583717&view=rev
Log:
hook up UI at end instead of building from top to bottom,
is faster
Modified:
incubator/xap/trunk/codebase/src/xap/session/ClientSession.js
Modified: incubator/xap/trunk/codebase/src/xap/session/ClientSession.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/session/ClientSession.js?rev=583717&r1=583716&r2=583717&view=diff
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/session/ClientSession.js (original)
+++ incubator/xap/trunk/codebase/src/xap/session/ClientSession.js Thu Oct 11 00:37:39 2007
@@ -229,9 +229,10 @@
this._processPluginConfigurationClasses( this.getApplication().getConfiguration().pluginClasses );
}
+ // create free node and set it as a root
+ var tempRootNode = document.createElement('div');
if (this.getApplication().getConfiguration().element){
- this._createInitialDocument(this.getApplication().getConfiguration().toolkitType,
- this.getApplication().getConfiguration().element);
+ this._createInitialDocument(this.getApplication().getConfiguration().toolkitType, tempRootNode);
}
var requestService = this.getRequestService();
@@ -244,6 +245,13 @@
catch( exception ){
this.handleException( exception);
}
+
+ // add to the main document
+ if (this.getApplication().getConfiguration().element) {
+ this.getApplication().getConfiguration().element.appendChild(tempRootNode);
+ }
+
+
};