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 2007/04/06 08:53:03 UTC
svn commit: r526106 -
/incubator/xap/trunk/codebase/src/xap/widgets/dojo/BorderPanel.js
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 = [];