react to fewer change events
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/9c098b71 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/9c098b71 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/9c098b71 Branch: refs/heads/develop Commit: 9c098b71537e33be17c5b76f3249ff75327ee842 Parents: 3d45d55 Author: Alex Harui <aha...@apache.org> Authored: Tue Jan 13 10:06:35 2015 -0800 Committer: Alex Harui <aha...@apache.org> Committed: Tue Jan 13 10:06:35 2015 -0800 ---------------------------------------------------------------------- .../FlexJSUI/src/org/apache/flex/binding/SimpleBinding.as | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c098b71/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/SimpleBinding.as ---------------------------------------------------------------------- diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/SimpleBinding.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/SimpleBinding.as index 7bd82b7..fa86ed1 100644 --- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/SimpleBinding.as +++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/SimpleBinding.as @@ -175,6 +175,12 @@ package org.apache.flex.binding private function changeHandler(event:Event):void { + if (event.type == ValueChangeEvent.VALUE_CHANGE) + { + var vce:ValueChangeEvent = event as ValueChangeEvent; + if (vce.propertyName != sourcePropertyName) + return; + } destination[destinationPropertyName] = source[sourcePropertyName]; }