incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject svn commit: r1381412 - /incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/WaitForLayoutManager.as
Date Wed, 05 Sep 2012 22:07:30 GMT
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;
+			}
 		} 
 		
 



Mime
View raw message