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 b3e9051  handle uninitialized date
b3e9051 is described below

commit b3e9051b9f310d07252fd9b0bd362383a98db8f2
Author: Alex Harui <[email protected]>
AuthorDate: Tue Jan 7 11:15:52 2020 -0800

    handle uninitialized date
---
 .../royale/mx/controls/dateFieldClasses/DateFieldDateChooser.as  | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dateFieldClasses/DateFieldDateChooser.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dateFieldClasses/DateFieldDateChooser.as
index 51db776..f9bae21 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dateFieldClasses/DateFieldDateChooser.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dateFieldClasses/DateFieldDateChooser.as
@@ -33,5 +33,14 @@ package mx.controls.dateFieldClasses
      */
        public class DateFieldDateChooser extends DateChooser implements 
IDateChooser
        {
+        
+        override public function set selectedDate(value:Date):void
+        {
+            if (!value)
+                value = new Date();
+                
+            super.selectedDate = value;
+        }
+
        }
 }

Reply via email to