Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 48C7C1038F for ; Mon, 12 Aug 2013 06:16:56 +0000 (UTC) Received: (qmail 40703 invoked by uid 500); 12 Aug 2013 06:16:51 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 40680 invoked by uid 500); 12 Aug 2013 06:16:50 -0000 Mailing-List: contact issues-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 issues@flex.apache.org Received: (qmail 40658 invoked by uid 99); 12 Aug 2013 06:16:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Aug 2013 06:16:48 +0000 Date: Mon, 12 Aug 2013 06:16:48 +0000 (UTC) From: "Sateesh Jaladi (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-33662) Events not removing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-33662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13736619#comment-13736619 ] Sateesh Jaladi commented on FLEX-33662: --------------------------------------- Accepted, but it should allow to remove the event listeners, let's say wrapper in case of second example. If we are unable to remove, the object won't be garbage collected, lets say we are having some 100 mxml files in a application that uses event listeners same as explained in second example (without specifying event object as parameter), that means those 100 objects won't be garbage collected? I don't think its a good solution either. > Events not removing > ------------------- > > Key: FLEX-33662 > URL: https://issues.apache.org/jira/browse/FLEX-33662 > Project: Apache Flex > Issue Type: Bug > Components: Spark: List > Affects Versions: Apache Flex 4.11.0 > Reporter: Sateesh Jaladi > Attachments: Main-generated.as, Main.mxml > > > Events added as part of mxml can not be removed. Even some of the events come default without creating them. Add a list component and create handler for "applicationComplete" event in application tag and check if the list component is having event listener for "change", (using hasEventListener(Event.CHANGE)) it will exist even though I haven't added one. Apart from this, If I add "changing" in List mxml like , I cannot remove the listener for "changing" event, even if I try to remove and test to see the same by using "hasEventListener('changing')" with the list component, its returning "true" only and never "false". The generated actionscript gives a hint like its creating own listeners and if we use the same listener to remove in application we see the output for "hasEventListener('changing')" is false. > Files has been added for your reference, you will have better idea once you check the attached files. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira