flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject git commit: [flex-sdk] [refs/heads/develop] - FLEX-16857 Fixed RTE when adding items after setting sort to null
Date Sat, 11 May 2013 00:36:48 GMT
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 <jmclean@apache.org>
Authored: Sat May 11 10:34:47 2013 +1000
Committer: Justin Mclean <jmclean@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"));
     }
 


Mime
View raw message