You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ti...@apache.org on 2012/01/08 23:06:15 UTC
svn commit: r1228971 -
/incubator/flex/whiteboard/navigators/src/ws/tink/spark/layouts/supportClasses/NavigatorLayoutBase.as
Author: tink
Date: Sun Jan 8 22:06:15 2012
New Revision: 1228971
URL: http://svn.apache.org/viewvc?rev=1228971&view=rev
Log:
Added a check that the "_elements" properties isn't null before process elements in restoreElements()
Modified:
incubator/flex/whiteboard/navigators/src/ws/tink/spark/layouts/supportClasses/NavigatorLayoutBase.as
Modified: incubator/flex/whiteboard/navigators/src/ws/tink/spark/layouts/supportClasses/NavigatorLayoutBase.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/navigators/src/ws/tink/spark/layouts/supportClasses/NavigatorLayoutBase.as?rev=1228971&r1=1228970&r2=1228971&view=diff
==============================================================================
--- incubator/flex/whiteboard/navigators/src/ws/tink/spark/layouts/supportClasses/NavigatorLayoutBase.as (original)
+++ incubator/flex/whiteboard/navigators/src/ws/tink/spark/layouts/supportClasses/NavigatorLayoutBase.as Sun Jan 8 22:06:15 2012
@@ -1174,7 +1174,7 @@ package ws.tink.spark.layouts.supportCla
{
// When using virtualization, elements get created after updateElements()
// has been invoked as part of getVirtualItemAt(), therefore we must re-calculate them.
- if( target is DataGroup && target.numChildren != _elements.length ) updateElements();
+ if( _elements && target is DataGroup && target.numChildren != _elements.length ) updateElements();
for each( var element:IVisualElement in _elements )
{