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 2006/11/02 02:43:17 UTC

svn commit: r470198 - /incubator/xap/trunk/src/xap/bridges/dojo/BorderPanelBridge.js

Author: jmargaris
Date: Wed Nov  1 18:43:16 2006
New Revision: 470198

URL: http://svn.apache.org/viewvc?view=rev&rev=470198
Log:
Bug fix for adding non-dojo children to borderPanel

Modified:
    incubator/xap/trunk/src/xap/bridges/dojo/BorderPanelBridge.js

Modified: incubator/xap/trunk/src/xap/bridges/dojo/BorderPanelBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/bridges/dojo/BorderPanelBridge.js?view=diff&rev=470198&r1=470197&r2=470198
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/dojo/BorderPanelBridge.js (original)
+++ incubator/xap/trunk/src/xap/bridges/dojo/BorderPanelBridge.js Wed Nov  1 18:43:16 2006
@@ -54,7 +54,11 @@
 xap.bridges.dojo.BorderPanelBridge.prototype.addChild = function( childHandler ){
 	var element = childHandler.getElement();
 	var borderPosition = element.getAttribute("borderPosition");
-	this.getPeer().addChild(childHandler.getPeer(),borderPosition);
+	
+	var childPeer = this.getDojoWidgetPeer(childHandler);
+	if (childPeer){
+		this.getPeer().addChild(childPeer,borderPosition);
+	}
 }