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 2015/01/13 19:11:18 UTC

[09/17] git commit: [flex-asjs] [refs/heads/develop] - handle property fetches

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 <ah...@apache.org>
Authored: Tue Jan 13 10:06:16 2015 -0800
Committer: Alex Harui <ah...@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++;