Updated Branches: refs/heads/develop 9f21583b8 -> 3b98c1d09
FLEX-16857 Fixed RTE when adding items after setting sort to null Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/3b98c1d0 Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/3b98c1d0 Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/3b98c1d0 Branch: refs/heads/develop Commit: 3b98c1d096742c4f35b51f28ead2e6827677960a Parents: 9f21583 Author: Justin Mclean <jmcl...@apache.org> Authored: Sat May 11 10:34:47 2013 +1000 Committer: Justin Mclean <jmcl...@apache.org> Committed: Sat May 11 10:34:47 2013 +1000 ---------------------------------------------------------------------- .../src/mx/collections/ListCollectionView.as | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/3b98c1d0/frameworks/projects/framework/src/mx/collections/ListCollectionView.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/framework/src/mx/collections/ListCollectionView.as b/frameworks/projects/framework/src/mx/collections/ListCollectionView.as index afce033..dcffed1 100644 --- a/frameworks/projects/framework/src/mx/collections/ListCollectionView.as +++ b/frameworks/projects/framework/src/mx/collections/ListCollectionView.as @@ -378,6 +378,10 @@ public class ListCollectionView extends Proxy public function set sort(s:ISort):void { _sort = s; + + if (s == null) + localIndex = null; + dispatchEvent(new Event("sortChanged")); }