flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosrov...@apache.org
Subject [2/6] git commit: [flex-asjs] - Handle MXML views not having any styles
Date Wed, 01 May 2013 17:25:04 GMT
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 <aharui@apache.org>
Authored: Tue Apr 30 07:41:51 2013 -0700
Committer: Alex Harui <aharui@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;


Mime
View raw message