This breaks the build with


     [java] 
C:\dev\flexjs\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\controls\DateField.as(1590):
 col: 20 Error: A

ccess of possibly undefined property _minYear.

     [java]

     [java]             return _minYear;

     [java]                    ^

     [java]



________________________________
From: [email protected] <[email protected]>
Sent: Wednesday, March 20, 2019 12:40:27 PM
To: [email protected]
Subject: [royale-asjs] branch develop updated: Update DateField.as

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

pushminakazi 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 7cb6ee1  Update DateField.as
7cb6ee1 is described below

commit 7cb6ee1970eaf985fb35df0c3b1d64f309236fb5
Author: pashminakazi <[email protected]>
AuthorDate: Wed Mar 20 15:40:22 2019 +0500

    Update DateField.as
---
 .../src/main/royale/mx/controls/DateField.as       | 26 +++++++++++-----------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DateField.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DateField.as
index e12e414..ffa8837 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DateField.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DateField.as
@@ -1179,16 +1179,16 @@ public class DateField extends ComboBase
      *  @private
      *  Storage for the displayedYear property.
      */
-  //  private var _displayedYear:int = (new Date()).getFullYear();
+    private var _displayedYear:int = (new Date()).getFullYear();

     /**
      *  @private
      */
-   /*  private var displayedYearChanged:Boolean = false;
+     private var displayedYearChanged:Boolean = false;

     [Bindable("displayedYearChanged")]
     [Inspectable(category="General")]
- */
+
     /**
      *  Used with the <code>displayedMonth</code> property,
      *  the <code>displayedYear</code> property determines
@@ -1516,12 +1516,12 @@ public class DateField extends ComboBase
      *  @private
      *  Storage for the maxYear property.
      */
-    //private var _maxYear:int = 2100;
+    private var _maxYear:int = 2100;

     /**
      *  @private
      */
-   // private var maxYearChanged:Boolean = false;
+    private var maxYearChanged:Boolean = false;

     /**
      *  The last year selectable in the control.
@@ -1534,18 +1534,18 @@ public class DateField extends ComboBase
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-   /*  public function get maxYear():int
+     public function get maxYear():int
     {
         if (dropdown)
             return dropdown.maxYear;
         else
             return _maxYear;
-    } */
+    }

     /**
      *  @private
      */
-   /*  public function set maxYear(value:int):void
+     public function set maxYear(value:int):void
     {
         if (_maxYear == value)
             return;
@@ -1554,7 +1554,7 @@ public class DateField extends ComboBase
         maxYearChanged = true;

         invalidateProperties();
-    } */
+    }

     //----------------------------------
     //  minYear
@@ -1582,18 +1582,18 @@ public class DateField extends ComboBase
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    /* public function get minYear():int
+     public function get minYear():int
     {
         if (dropdown)
             return dropdown.minYear;
         else
             return _minYear;
-    } */
+    }

     /**
      *  @private
      */
-   /*  public function set minYear(value:int):void
+     public function set minYear(value:int):void
     {
         if (_displayedYear == value)
             return;
@@ -1602,7 +1602,7 @@ public class DateField extends ComboBase
         minYearChanged = true;

         invalidateProperties();
-    } */
+    }

     //----------------------------------
     //  monthNames

Reply via email to