incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r521522 - in /incubator/xap/trunk/codebase/src/xap/bridges/dojo: TabBridge.js TabPaneBridge.js
Date Thu, 22 Mar 2007 23:05:17 GMT
Author: jmargaris
Date: Thu Mar 22 16:05:17 2007
New Revision: 521522

URL: http://svn.apache.org/viewvc?view=rev&rev=521522
Log:
upgrade to dojo broke some stuff because nomenclature
was changed from 'tab' to more generic 'child'

https://issues.apache.org/jira/browse/XAP-350

Modified:
    incubator/xap/trunk/codebase/src/xap/bridges/dojo/TabBridge.js
    incubator/xap/trunk/codebase/src/xap/bridges/dojo/TabPaneBridge.js

Modified: incubator/xap/trunk/codebase/src/xap/bridges/dojo/TabBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/dojo/TabBridge.js?view=diff&rev=521522&r1=521521&r2=521522
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/bridges/dojo/TabBridge.js (original)
+++ incubator/xap/trunk/codebase/src/xap/bridges/dojo/TabBridge.js Thu Mar 22 16:05:17 2007
@@ -59,14 +59,14 @@
 	this._tabContainer =  parentHandler.getPeer();
 	
 	this._wasSelected = 
-			(this._tabContainer.selectedTabWidget == this.getPeer()) ;
+			(this._tabContainer.selectedChildWidget == this.getPeer()) ;
 	
 	//add listener last so we don't fire for the initial set
-	dojo.event.connect(this._tabContainer, "selectTab",this,"onSelect");		
+	dojo.event.connect(this._tabContainer, "selectChild",this,"onSelect");		
 }
 
 xap.bridges.dojo.TabBridge.prototype.unload = function(){
-	dojo.event.disconnect(this._tabContainer, "selectTab",this,"onSelect");
+	dojo.event.disconnect(this._tabContainer, "selectChild",this,"onSelect");
 }
 
 xap.bridges.dojo.TabBridge.prototype.onSelect = function(){
@@ -126,7 +126,7 @@
 }	
 
 xap.bridges.dojo.TabBridge.prototype.selected = function(){
-	return ( this._tabContainer.selectedTabWidget == this.getPeer() ) ;
+	return ( this._tabContainer.selectedChildWidget == this.getPeer() ) ;
 }
 
 

Modified: incubator/xap/trunk/codebase/src/xap/bridges/dojo/TabPaneBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/dojo/TabPaneBridge.js?view=diff&rev=521522&r1=521521&r2=521522
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/bridges/dojo/TabPaneBridge.js (original)
+++ incubator/xap/trunk/codebase/src/xap/bridges/dojo/TabPaneBridge.js Thu Mar 22 16:05:17
2007
@@ -66,15 +66,15 @@
 		this._removedScrollbars = true ;
 	}
 
-	var oldSelectedTab = this.getPeer().selectedTabWidget;
+	var oldSelectedTab = this.getPeer().selectedChildWidget;
 	xap.bridges.dojo.TabPaneBridge.superclass.addChild.call(this,childHandler, index );
-	var newSelectedTab = this.getPeer().selectedTabWidget;
+	var newSelectedTab = this.getPeer().selectedChildWidget;
 	
 	//after a child is added if some new tab is selected
 	//we select it here because tabContainer doesn't seem to handle
 	//that except for one time in postCreate
 	if(newSelectedTab && ( newSelectedTab!=oldSelectedTab) ){
-		this.getPeer().selectTab(newSelectedTab, true);
+		this.getPeer().selectChild(newSelectedTab, true);
 	}
 }
 



Mime
View raw message