You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2013/04/07 14:07:25 UTC
git commit: FLEX-33288 reverted last commit and reset NaN to 0 in
nearestValidValue inside Range.as
Updated Branches:
refs/heads/develop 53ad8aa03 -> 2b3c3c090
FLEX-33288 reverted last commit and reset NaN to 0 in nearestValidValue inside Range.as
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/2b3c3c09
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/2b3c3c09
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/2b3c3c09
Branch: refs/heads/develop
Commit: 2b3c3c0902812e216ebd0ebad69956b7cba19058
Parents: 53ad8aa
Author: Harbs <ha...@in-tools.com>
Authored: Sun Apr 7 15:05:13 2013 +0300
Committer: Harbs <ha...@in-tools.com>
Committed: Sun Apr 7 15:05:13 2013 +0300
----------------------------------------------------------------------
.../spark/src/spark/components/NumericStepper.as | 11 -----------
.../src/spark/components/supportClasses/Range.as | 5 ++++-
2 files changed, 4 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2b3c3c09/frameworks/projects/spark/src/spark/components/NumericStepper.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/NumericStepper.as b/frameworks/projects/spark/src/spark/components/NumericStepper.as
index 0848245..36a1982 100644
--- a/frameworks/projects/spark/src/spark/components/NumericStepper.as
+++ b/frameworks/projects/spark/src/spark/components/NumericStepper.as
@@ -740,17 +740,6 @@ public class NumericStepper extends Spinner
/**
* @private
*/
- override public function set value(newValue:Number):void
- {
- if(isNaN(newValue))
- newValue = 0;
-
- super.value = newValue;
- }
-
- /**
- * @private
- */
override protected function setValue(newValue:Number):void
{
super.setValue(newValue);
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2b3c3c09/frameworks/projects/spark/src/spark/components/supportClasses/Range.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/supportClasses/Range.as b/frameworks/projects/spark/src/spark/components/supportClasses/Range.as
index 8b31eab..d47db4c 100644
--- a/frameworks/projects/spark/src/spark/components/supportClasses/Range.as
+++ b/frameworks/projects/spark/src/spark/components/supportClasses/Range.as
@@ -445,7 +445,10 @@ public class Range extends SkinnableComponent
* @productversion Flex 4
*/
protected function nearestValidValue(value:Number, interval:Number):Number
- {
+ {
+ if(isNaN(value))
+ value = 0;
+
if (interval == 0)
return Math.max(minimum, Math.min(maximum, value));