flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [2/3] git commit: [flex-asjs] [refs/heads/develop] - handle wrapped apps
Date Fri, 11 Nov 2016 06:50:58 GMT
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/develop
Commit: 11ef7042929390ebc983ef2030bbdad4ce4e2517
Parents: 95457eb
Author: Alex Harui <aharui@apache.org>
Authored: Thu Nov 10 22:49:46 2016 -0800
Committer: Alex Harui <aharui@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);
+					}
                 }
             }
         }


Mime
View raw message