You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ca...@apache.org on 2016/11/11 12:21:01 UTC
[3/6] git commit: [flex-asjs] [refs/heads/feature/mdl] - handle
wrapped apps
handle wrapped apps
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/11ef7042
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/11ef7042
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/11ef7042
Branch: refs/heads/feature/mdl
Commit: 11ef7042929390ebc983ef2030bbdad4ce4e2517
Parents: 95457eb
Author: Alex Harui <ah...@apache.org>
Authored: Thu Nov 10 22:49:46 2016 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Nov 10 22:50:53 2016 -0800
----------------------------------------------------------------------
.../src/main/flex/org/apache/flex/utils/MixinManager.as | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/11ef7042/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/MixinManager.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/MixinManager.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/MixinManager.as
index e938da5..656f790 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/MixinManager.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/MixinManager.as
@@ -21,9 +21,11 @@ package org.apache.flex.utils
COMPILE::SWF
{
+ import flash.display.DisplayObject;
import flash.system.ApplicationDomain;
}
+import org.apache.flex.core.ElementWrapper;
import org.apache.flex.core.IBead;
import org.apache.flex.core.IFlexInfo;
import org.apache.flex.core.IStrand;
@@ -80,7 +82,12 @@ public class MixinManager implements IBead
for each (var mixin:String in mixins)
{
var mixinClass:Object = domain.getDefinition(mixin);
- mixinClass.init(value);
+ if (value is DisplayObject)
+ mixinClass.init(value);
+ else
+ {
+ mixinClass.init((value as ElementWrapper).element);
+ }
}
}
}