You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/04/28 02:46:53 UTC

[1/2] git commit: [flex-sdk] - Fixed comment

Updated Branches:
  refs/heads/develop c7d54ed51 -> 497387cda


Fixed comment


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

Branch: refs/heads/develop
Commit: f7c6f34bf69b4927994b3bfdf665ad1e7b240e5d
Parents: c7d54ed
Author: Justin Mclean <jm...@apache.org>
Authored: Sun Apr 28 10:44:57 2013 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Sun Apr 28 10:44:57 2013 +1000

----------------------------------------------------------------------
 .../framework/src/mx/validators/DateValidator.as   |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f7c6f34b/frameworks/projects/framework/src/mx/validators/DateValidator.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/validators/DateValidator.as b/frameworks/projects/framework/src/mx/validators/DateValidator.as
index 065438a..7a6980b 100644
--- a/frameworks/projects/framework/src/mx/validators/DateValidator.as
+++ b/frameworks/projects/framework/src/mx/validators/DateValidator.as
@@ -795,8 +795,8 @@ public class DateValidator extends Validator
 	
 	/** 
 	 *  If <code>true</code> the date format is shown in some
-	 *  validation error messages. Setting to false changes all
-	 *  DateValidators.
+	 *  validation error messages. Setting to <code>false</code>
+	 *  changes all DateValidators.
 	 *
 	 *  @default true
 	 *  


[2/2] git commit: [flex-sdk] - FLEX-22502 Implemented DATA_CHANGE event when editing date in text field

Posted by jm...@apache.org.
FLEX-22502 Implemented DATA_CHANGE event when editing date in text field


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

Branch: refs/heads/develop
Commit: 497387cda352ba3c9851e5532c37f63236363d7f
Parents: f7c6f34
Author: Justin Mclean <jm...@apache.org>
Authored: Sun Apr 28 10:46:35 2013 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Sun Apr 28 10:46:35 2013 +1000

----------------------------------------------------------------------
 .../projects/mx/src/mx/controls/DateField.as       |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/497387cd/frameworks/projects/mx/src/mx/controls/DateField.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/mx/src/mx/controls/DateField.as b/frameworks/projects/mx/src/mx/controls/DateField.as
index a9e86bd..ef6622a 100644
--- a/frameworks/projects/mx/src/mx/controls/DateField.as
+++ b/frameworks/projects/mx/src/mx/controls/DateField.as
@@ -2035,6 +2035,8 @@ public class DateField extends ComboBase
         textInput.mouseChildren = true;
         textInput.mouseEnabled = true;
         textInput.addEventListener(TextEvent.TEXT_INPUT, textInput_textInputHandler);
+		textInput.addEventListener(Event.CHANGE, onTextInputChange);
+		
         // hide the border, we use the text input's border
         if (border)
             border.visible = false;
@@ -2276,6 +2278,14 @@ public class DateField extends ComboBase
         monthSymbol = monthSymbolOverride;
         yearSymbol = yearSymbolOverride;
     }
+	
+	/**
+	 *  @private
+	 */
+	protected function onTextInputChange(event:Event = null):void
+	{
+		dispatchEvent(new ItemEditEvent(ItemEditEvent.DATA_CHANGE, true));
+	}
 
     //--------------------------------------------------------------------------
     //