incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r481141 - /incubator/xap/trunk/src/xap/xml/XalNamespaceHandler.js
Date Fri, 01 Dec 2006 04:04:30 GMT
Author: jmargaris
Date: Thu Nov 30 20:04:28 2006
New Revision: 481141

URL: http://svn.apache.org/viewvc?view=rev&rev=481141
Log:
checked in in-progress version by mistake

Modified:
    incubator/xap/trunk/src/xap/xml/XalNamespaceHandler.js

Modified: incubator/xap/trunk/src/xap/xml/XalNamespaceHandler.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/XalNamespaceHandler.js?view=diff&rev=481141&r1=481140&r2=481141
==============================================================================
--- incubator/xap/trunk/src/xap/xml/XalNamespaceHandler.js (original)
+++ incubator/xap/trunk/src/xap/xml/XalNamespaceHandler.js Thu Nov 30 20:04:28 2006
@@ -81,27 +81,7 @@
 	 //get the root and just append to it
 	 var uiDocument = this._session.getDocumentContainer().getUiDocument();
 	 var rootElement = uiDocument.getRootElement();
-	 var rootPane = null;
-	 
-	 if (element.nodeName=='rootPane'){
-	 	rootElement.appendChild(element);
-	 	return;
-	 }
-	 
-	 for (var i = 0; i<rootElement.childNodes.length &&!rootPane; i++){
-	 	var child = rootElement.childNodes[i];
-	 	if (child.nodeType==google.DOM_ELEMENT && child.nodeName=="rootPane"){
-	 		rootPane = child;
-	 	}
-	 }
-	 
-	 
-	 if (!rootPane){	 	
-	 	//TODO should we take this namespace from the element passed in instead?
-	    rootPane = uiDocument.createElement("rootPane",element.getNamespaceUri());
-	    rootElement.appendChild(rootPane);
-	 }
-	 rootPane.appendChild(element);
+	 rootElement.appendChild(element);
 }
 
 



Mime
View raw message