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 2013/05/01 19:25:04 UTC

[2/6] git commit: [flex-asjs] - Handle MXML views not having any styles

Handle MXML views not having any styles


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

Branch: refs/heads/feature/createjs-checkbox
Commit: 81a2aab88b930f1a7232841bb433a0387e7c7c87
Parents: 05632ae
Author: Alex Harui <ah...@apache.org>
Authored: Tue Apr 30 07:41:51 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Apr 30 07:41:51 2013 -0700

----------------------------------------------------------------------
 .../org/apache/flex/core/SimpleCSSValuesImpl.as    |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/81a2aab8/frameworks/as/src/org/apache/flex/core/SimpleCSSValuesImpl.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/core/SimpleCSSValuesImpl.as b/frameworks/as/src/org/apache/flex/core/SimpleCSSValuesImpl.as
index 129060e..dab5799 100644
--- a/frameworks/as/src/org/apache/flex/core/SimpleCSSValuesImpl.as
+++ b/frameworks/as/src/org/apache/flex/core/SimpleCSSValuesImpl.as
@@ -59,6 +59,11 @@ package org.apache.flex.core
         
         public function generateCSSStyleDeclarations(factoryFunctions:Object, arr:Array):void
         {
+			if (factoryFunctions == null)
+				return;
+			if (arr == null)
+				return;
+			
             var declarationName:String = "";
             var segmentName:String = "";
             var n:int = arr.length;