Repository: flex-sdk Updated Branches: refs/heads/develop 908d2a2e6 -> e689f24ce
FLEX-34945 SOLUTION: when the property contains a dot, we use ObjectUtil to extract the property from the property chain. Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/e17873a3 Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/e17873a3 Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/e17873a3 Branch: refs/heads/develop Commit: e17873a35bf522ffee849d4d95d3effb0d465bd7 Parents: 908d2a2 Author: Mihai Chira <[email protected]> Authored: Wed Oct 21 16:42:08 2015 +0200 Committer: Mihai Chira <[email protected]> Committed: Wed Oct 21 16:42:08 2015 +0200 ---------------------------------------------------------------------- frameworks/projects/framework/src/mx/validators/Validator.as | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e17873a3/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 81051a0..a366608 100644 --- a/frameworks/projects/framework/src/mx/validators/Validator.as +++ b/frameworks/projects/framework/src/mx/validators/Validator.as @@ -29,6 +29,7 @@ package mx.validators import mx.events.ValidationResultEvent; import mx.resources.IResourceManager; import mx.resources.ResourceManager; + import mx.utils.ObjectUtil; //-------------------------------------- // Events @@ -937,7 +938,7 @@ public class Validator extends EventDispatcher implements IMXMLObject,IValidator if (_source && _property) { - return _source[_property]; + return _property.indexOf(".") == -1 ? _source[_property] : ObjectUtil.getValue(_source, _property.split(".")); } else if (!_source && _property)
