incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r431839 - /incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js
Date Wed, 16 Aug 2006 06:12:26 GMT
Author: mturyn
Date: Tue Aug 15 23:12:26 2006
New Revision: 431839

URL: http://svn.apache.org/viewvc?rev=431839&view=rev
Log:
provide()s before all the require(0s.

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

Modified: incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js?rev=431839&r1=431838&r2=431839&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js (original)
+++ incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js Tue Aug 15 23:12:26 2006
@@ -14,9 +14,9 @@
  *  limitations under the License.
  *
  */
- 
+
+Xap.provide("xap.bridges.dojo.DojoWidgetBridge");  
 Xap.require("xap.bridges.basic.AbstractBlackBoxWidgetBridge"); 
-Xap.provide("xap.bridges.dojo.DojoWidgetBridge"); 
 // Auto-added---o.k.?
 Xap.require("xap.util.Exception");
 
@@ -121,14 +121,14 @@
 
 		var parent = this.getElement().getParent();
 		var handler = this.getUiContentHandler().getHandlerForElement( parent );
-		var parentPeerNode = handler.getPeer();
+		var parentPeerNode = null ;
       
     
 		// This is necessary if a Dojo widget is the parentPeer:
 		// This is probably a kludge, but I don't want to
 		// muck around with handler.getPeer() at the moment:
-		if( parentPeerNode.containerNode ){
-			parentPeerNode = parentPeerNode.containerNode ;
+		if( handler.getDisplayDomNode ){
+			parentPeerNode = handler.getDisplayDomNode() ;
 		}	    
 
 		// If we've specified a node....



Mime
View raw message