flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [2/2] git commit: [flex-sdk] [refs/heads/develop] - FLEX-34011 stop RTE when vaue/_axis is null
Date Wed, 25 Dec 2013 11:37:27 GMT
FLEX-34011 stop RTE when vaue/_axis is null


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/73aabf2c
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/73aabf2c
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/73aabf2c

Branch: refs/heads/develop
Commit: 73aabf2ce566e7eb3a2b1af0345a6ca26120682f
Parents: 9522895
Author: Justin Mclean <jmclean@apache.org>
Authored: Wed Dec 25 22:37:10 2013 +1100
Committer: Justin Mclean <jmclean@apache.org>
Committed: Wed Dec 25 22:37:10 2013 +1100

----------------------------------------------------------------------
 frameworks/projects/charts/src/mx/charts/AxisRenderer.as | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/73aabf2c/frameworks/projects/charts/src/mx/charts/AxisRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/charts/src/mx/charts/AxisRenderer.as b/frameworks/projects/charts/src/mx/charts/AxisRenderer.as
index 5274aee..29fce16 100644
--- a/frameworks/projects/charts/src/mx/charts/AxisRenderer.as
+++ b/frameworks/projects/charts/src/mx/charts/AxisRenderer.as
@@ -640,10 +640,10 @@ public class AxisRenderer extends DualStyleObject implements IAxisRenderer
 
         _axis = value;
 
-        value.addEventListener("axisChange", axisChangeHandler,
-                               false, 0, true);
-        value.addEventListener("titleChange", titleChangeHandler,
-                               false, 0, true);
+		if (_axis) {
+        	value.addEventListener("axisChange", axisChangeHandler, false, 0, true);
+        	value.addEventListener("titleChange", titleChangeHandler, false, 0, true);
+		}
     }
     
     //----------------------------------


Mime
View raw message