incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject svn commit: r1375290 - /incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/UnitTester.as
Date Mon, 20 Aug 2012 22:51:32 GMT
Author: aharui
Date: Mon Aug 20 22:51:32 2012
New Revision: 1375290

URL: http://svn.apache.org/viewvc?rev=1375290&view=rev
Log:
Add missing hasDefinition call.

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

Modified: incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/UnitTester.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/UnitTester.as?rev=1375290&r1=1375289&r2=1375290&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/UnitTester.as (original)
+++ incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/UnitTester.as Mon Aug 20
22:51:32 2012
@@ -307,13 +307,15 @@ public class UnitTester extends EventDis
 			_root.addEventListener("activate", activateBlockingHandler, true);
 		}
 		
-		g = Class(appdom.getDefinition("spark.components.supportClasses.RichEditableTextContainerManager"));
-		if (g)
+		if (appdom.hasDefinition("spark.components.supportClasses.RichEditableTextContainerManager"))
 		{
-			var q:QName = new QName(mx_internal, "hideCursor");
-			g[q] = true;
-		}
-		
+			g = Class(appdom.getDefinition("spark.components.supportClasses.RichEditableTextContainerManager"));
+			if (g)
+			{
+				var q:QName = new QName(mx_internal, "hideCursor");
+				g[q] = true;
+			}
+		}		
 	}
 
 	/**



Mime
View raw message