You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2020/01/23 23:19:27 UTC

[royale-asjs] branch develop updated: NumericStepper wasn't reporting value correctly. Should fix #693

This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 84de90c  NumericStepper wasn't reporting value correctly.  Should fix #693
84de90c is described below

commit 84de90c2aa1125ccd54995ed4240e3f744ec7a5a
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Jan 23 15:19:15 2020 -0800

    NumericStepper wasn't reporting value correctly.  Should fix #693
---
 .../src/main/royale/spark/components/supportClasses/Range.as   | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/Range.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/Range.as
index c538df8..24eaade 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/Range.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/Range.as
@@ -207,7 +207,7 @@ public class Range extends SkinnableComponent
      */
     public function get stepSize():Number
     {
-        return _stepSize;
+        return (model as RangeModel).stepSize;
     }
     
     public function set stepSize(value:Number):void
@@ -218,6 +218,8 @@ public class Range extends SkinnableComponent
         _stepSize = value;
         stepSizeChanged = true;
         
+        (model as RangeModel).stepSize = value;
+        
         invalidateProperties();       
     }
     
@@ -252,7 +254,7 @@ public class Range extends SkinnableComponent
      */
     public function get value():Number
     {
-        return (valueChanged) ? _changedValue : _value;
+        return (model as RangeModel).value;
     }
     
     
@@ -268,9 +270,7 @@ public class Range extends SkinnableComponent
     {
         if (newValue == value)
             return;
-        _changedValue = newValue;
-        valueChanged = true;
-        invalidateProperties();
+        (model as RangeModel).value = newValue;
     }
     
     //---------------------------------