sync up bug fixes from SimpleStatesImpl
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/a6f3b454 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/a6f3b454 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/a6f3b454 Branch: refs/heads/release0.8.0 Commit: a6f3b4542ba1f954f389076e7a55353d0ec88c14 Parents: 8cab6a1 Author: Alex Harui <aha...@apache.org> Authored: Tue May 16 08:52:43 2017 -0700 Committer: Alex Harui <aha...@apache.org> Committed: Tue May 16 09:47:40 2017 -0700 ---------------------------------------------------------------------- .../main/flex/org/apache/flex/core/StatesWithTransitionsImpl.as | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a6f3b454/frameworks/projects/Effects/src/main/flex/org/apache/flex/core/StatesWithTransitionsImpl.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/Effects/src/main/flex/org/apache/flex/core/StatesWithTransitionsImpl.as b/frameworks/projects/Effects/src/main/flex/org/apache/flex/core/StatesWithTransitionsImpl.as index cc58ef6..70e9a1a 100644 --- a/frameworks/projects/Effects/src/main/flex/org/apache/flex/core/StatesWithTransitionsImpl.as +++ b/frameworks/projects/Effects/src/main/flex/org/apache/flex/core/StatesWithTransitionsImpl.as @@ -292,12 +292,12 @@ package org.apache.flex.core if (!isItemInState(item, oldState)) { var parent:IParent = ai.document as IParent; - if (ai.destination) + if (ai.destination != null) parent = parent[ai.destination] as IParent; if (ai.relativeTo != null) { var child:IChild = ai.document[ai.relativeTo] as IChild; - if (ai.destination) + if (ai.destination == null) parent = child.parent as IParent; var index:int = parent.getElementIndex(child); if (ai.position == "after")