flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [5/5] git commit: [flex-asjs] [refs/heads/develop] - handle having no mixins
Date Thu, 07 Jul 2016 17:11:39 GMT
handle having no mixins


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

Branch: refs/heads/develop
Commit: 8770b6704d3da8f5b60eb203f996626197376f92
Parents: 95cc27e
Author: Alex Harui <aharui@apache.org>
Authored: Thu Jul 7 10:11:05 2016 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Jul 7 10:11:21 2016 -0700

----------------------------------------------------------------------
 .../flex/org/apache/flex/utils/MixinManager.as    | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8770b670/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 ec61a5c..e938da5 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
@@ -89,14 +89,18 @@ public class MixinManager implements IBead
             var app:IFlexInfo = value as IFlexInfo;
             if (app) 
             {
-                var mixins:Array = app.info()['mixins'] as Array;
-                if (mixins) {
-                    var n:int = mixins.length;
-                    for (var i:int = 0; i < n; i++) 
-                    {
-                        mixins[i].init(value);
+				var info:Object = app.info();
+				if (info)
+				{
+                    var mixins:Array = info['mixins'] as Array;
+                    if (mixins) {
+                        var n:int = mixins.length;
+                        for (var i:int = 0; i < n; i++) 
+                        {
+                            mixins[i].init(value);
+                        }
                     }
-                }
+				}
             }
         }
     }    


Mime
View raw message