Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C159811C96 for ; Sat, 11 May 2013 00:36:48 +0000 (UTC) Received: (qmail 91795 invoked by uid 500); 11 May 2013 00:36:48 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 91776 invoked by uid 500); 11 May 2013 00:36:48 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 91770 invoked by uid 99); 11 May 2013 00:36:48 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 May 2013 00:36:48 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 4A6B688BBD0; Sat, 11 May 2013 00:36:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jmclean@apache.org To: commits@flex.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer 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 +0000 (UTC) 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 Authored: Sat May 11 10:34:47 2013 +1000 Committer: Justin Mclean 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")); }