incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r526106 - /incubator/xap/trunk/codebase/src/xap/widgets/dojo/BorderPanel.js
Date Fri, 06 Apr 2007 08:53:03 GMT
Author: jmargaris
Date: Fri Apr  6 01:53:02 2007
New Revision: 526106

URL: http://svn.apache.org/viewvc?view=rev&rev=526106
Log:
cleaning up an item with a border pane in it could have issues
thanks to deferred layout being an invalid operation
after cleanup of dom node

Modified:
    incubator/xap/trunk/codebase/src/xap/widgets/dojo/BorderPanel.js

Modified: incubator/xap/trunk/codebase/src/xap/widgets/dojo/BorderPanel.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/widgets/dojo/BorderPanel.js?view=diff&rev=526106&r1=526105&r2=526106
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/widgets/dojo/BorderPanel.js (original)
+++ incubator/xap/trunk/codebase/src/xap/widgets/dojo/BorderPanel.js Fri Apr  6 01:53:02 2007
@@ -106,6 +106,12 @@
     },
     
     onResized: function(){
+    	
+    	//because we use setTimeout in some places we may no longer be
+    	//in a valid state
+    	if (!this.domNode){
+    		return;
+    	}
     	this._resizePending = false;
 		var children = [];
 



Mime
View raw message