flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [19/50] git commit: [flex-sdk] [refs/heads/master] - FLEX-33986 Validator.source is now bindable
Date Fri, 18 Jul 2014 06:04:40 GMT
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/master
Commit: 780d16a95df3bc3c37860eb18f7c9714569c4748
Parents: 2236431
Author: Alex Harui <aharui@apache.org>
Authored: Wed Jun 18 16:30:35 2014 -0700
Committer: Alex Harui <aharui@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"));
     }
 
     //----------------------------------


Mime
View raw message