You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2012/09/06 00:07:30 UTC

svn commit: r1381412 - /incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/WaitForLayoutManager.as

Author: aharui
Date: Wed Sep  5 22:07:30 2012
New Revision: 1381412

URL: http://svn.apache.org/viewvc?rev=1381412&view=rev
Log:
Make WaitForLayoutManager smarter. It checks to see if it needs to wait or not.

Modified:
    incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/WaitForLayoutManager.as

Modified: incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/WaitForLayoutManager.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/WaitForLayoutManager.as?rev=1381412&r1=1381411&r2=1381412&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/WaitForLayoutManager.as (original)
+++ incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/WaitForLayoutManager.as Wed Sep  5 22:07:30 2012
@@ -55,8 +55,15 @@ public class WaitForLayoutManager extend
 		var actualTarget:Object = context.stringToObject(target);
 		if (actualTarget)
 		{
-			actualTarget.addEventListener(eventName, eventListener);
-			eventListenerListening = true;
+			if (actualTarget.isInvalid())
+			{
+				actualTarget.addEventListener(eventName, eventListener);
+				eventListenerListening = true;
+			}
+			else 
+			{
+				return true;
+			}
 		}