flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [09/17] git commit: [flex-asjs] [refs/heads/develop] - handle property fetches
Date Tue, 13 Jan 2015 18:11:18 GMT
handle property fetches


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/3d45d55a
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/3d45d55a
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/3d45d55a

Branch: refs/heads/develop
Commit: 3d45d55a7cd30d0af511a90b17bff0c489585a2f
Parents: 82ef6d5
Author: Alex Harui <aharui@apache.org>
Authored: Tue Jan 13 10:06:16 2015 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Jan 13 10:06:16 2015 -0800

----------------------------------------------------------------------
 .../src/org/apache/flex/core/StatesWithTransitionsImpl.as | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3d45d55a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/StatesWithTransitionsImpl.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/StatesWithTransitionsImpl.as
b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/StatesWithTransitionsImpl.as
index 75b6815..7f23785 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/StatesWithTransitionsImpl.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/StatesWithTransitionsImpl.as
@@ -247,13 +247,13 @@ package org.apache.flex.core
                     for each (var item:Object in ai.items)
                     {
                         var parent:IParent = ai.document as IParent;
-                        if (ai.destination != null)
-                            parent = parent[ai.destination] as IParent;
+                        if (ai.destination)
+                            parent = getProperty(parent, ai.destination) as IParent;
                         if (ai.relativeTo != null)
                         {
-                            var child:Object = ai.document[ai.relativeTo];
-                            if (ai.destination == null)
-                                parent = child.parent as IParent;
+                            var child:Object = getProperty(ai.document, ai.relativeTo);
+                            if (ai.destination)
+                                parent = IChild(child).parent as IParent;
                             var index:int = parent.getElementIndex(child);
                             if (ai.position == "after")
                                 index++;


Mime
View raw message