You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/06/19 01:30:50 UTC

[2/2] git commit: [flex-sdk] [refs/heads/develop] - FLEX-33986 Validator.source is now bindable

FLEX-33986 Validator.source is now bindable


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

Branch: refs/heads/develop
Commit: 780d16a95df3bc3c37860eb18f7c9714569c4748
Parents: 2236431
Author: Alex Harui <ah...@apache.org>
Authored: Wed Jun 18 16:30:35 2014 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Jun 18 16:30:35 2014 -0700

----------------------------------------------------------------------
 frameworks/projects/framework/src/mx/validators/Validator.as | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/780d16a9/frameworks/projects/framework/src/mx/validators/Validator.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/validators/Validator.as b/frameworks/projects/framework/src/mx/validators/Validator.as
index 122b415..b311765 100644
--- a/frameworks/projects/framework/src/mx/validators/Validator.as
+++ b/frameworks/projects/framework/src/mx/validators/Validator.as
@@ -539,7 +539,7 @@ public class Validator extends EventDispatcher implements IMXMLObject,IValidator
     private var _source:Object;
     
     [Inspectable(category="General")]
-
+	[Bindable("sourceChanged")]
     /**
      *  Specifies the object containing the property to validate. 
      *  Set this to an instance of a component or a data model. 
@@ -587,7 +587,8 @@ public class Validator extends EventDispatcher implements IMXMLObject,IValidator
                 
         // Listen for the trigger event on the new source.
         addTriggerHandler();    
-        addListenerHandler();   
+        addListenerHandler();
+		dispatchEvent(new Event("sourceChanged"));
     }
 
     //----------------------------------