royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [royale-asjs] 02/05: fix valueExpression in Flash
Date Tue, 03 Jul 2018 20:45:21 GMT
This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 3fffafbd00a34cde29bde19032d71c5872596839
Author: Alex Harui <aharui@apache.org>
AuthorDate: Tue Jul 3 13:42:08 2018 -0700

    fix valueExpression in Flash
---
 mustella/src/main/royale/AssertPropertyValue.as | 2 +-
 mustella/src/main/royale/RunCodeEvent.as        | 9 +--------
 mustella/src/main/royale/SetProperty.as         | 2 +-
 3 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/mustella/src/main/royale/AssertPropertyValue.as b/mustella/src/main/royale/AssertPropertyValue.as
index 33c26db..5eec298 100644
--- a/mustella/src/main/royale/AssertPropertyValue.as
+++ b/mustella/src/main/royale/AssertPropertyValue.as
@@ -33,7 +33,7 @@ import flash.events.EventDispatcher;
  *  Instead of a property, we use an event so the MXML
  *  compiler will wrap the code in a function for us
  */
-[Event(name="valueExpression", type="flash.events.Event")]
+[Event(name="valueExpression", type="org.apache.royale.events.Event")]
 
 /**
  *  Tests that the value of a property is as expected
diff --git a/mustella/src/main/royale/RunCodeEvent.as b/mustella/src/main/royale/RunCodeEvent.as
index f6dfbd8..d6be02b 100644
--- a/mustella/src/main/royale/RunCodeEvent.as
+++ b/mustella/src/main/royale/RunCodeEvent.as
@@ -18,14 +18,7 @@
 ////////////////////////////////////////////////////////////////////////////////
 package {
 
-COMPILE::SWF
-{
-import flash.events.Event;
-}
-COMPILE::JS
-{
-    import org.apache.royale.events.Event;
-}
+import org.apache.royale.events.Event;
 
 /**
  *  The event passed into any code being
diff --git a/mustella/src/main/royale/SetProperty.as b/mustella/src/main/royale/SetProperty.as
index e3a05a0..3528bee 100644
--- a/mustella/src/main/royale/SetProperty.as
+++ b/mustella/src/main/royale/SetProperty.as
@@ -27,7 +27,7 @@ import flash.display.DisplayObject;
  *  Instead of a property, we use an event so the MXML
  *  compiler will wrap the code in a function for us
  */
-[Event(name="valueExpression", type="flash.events.Event")]
+[Event(name="valueExpression", type="org.apache.royale.events.Event")]
 
 /**
  *  The test step that sets a property to some value


Mime
View raw message