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 E306C1012A for ; Wed, 16 Apr 2014 10:20:24 +0000 (UTC) Received: (qmail 60386 invoked by uid 500); 16 Apr 2014 10:20:20 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 60183 invoked by uid 500); 16 Apr 2014 10:20:16 -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 60149 invoked by uid 99); 16 Apr 2014 10:20:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2014 10:20:16 +0000 Date: Wed, 16 Apr 2014 10:20:15 +0000 (UTC) From: "Mihai Chira (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLEX-34229) DataGridEditor doesn't remove the Event.DEACTIVATE listener on destroyItemEditor() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Mihai Chira created FLEX-34229: ---------------------------------- Summary: DataGridEditor doesn't remove the Event.DEACTIVATE listener on destroyItemEditor() Key: FLEX-34229 URL: https://issues.apache.org/jira/browse/FLEX-34229 Project: Apache Flex Issue Type: Bug Components: Spark: DataGrid Affects Versions: Apache Flex 4.12.0 Reporter: Mihai Chira Priority: Minor Fix For: Apache Flex 4.13.0 Attachments: _editorDeactivateHandler.fxp Steps to reproduce: 1. Import and run attached project. 2. Set a breakpoint in DataGridEditor.deactivateHandler(). 3. Double click on 'hello' to show the editor. 4. Click in the grid under 'hello' to remove the editor. 5. Click on the Remove Grid button. 6. Click anywhere outside the AIR app to de-focus it. Actual result: the breakpoint is triggered, which means that the DataGridEditor is still responding to Event.DEACTIVATE even after the editor was closed, and even after the grid was removed. Desired result: DataGridEditor.deactivateHandler() should only be called while an editor is open, as long as the grid itself is still on stage (NB the grid can be removed while the editor is still open, see FLEX-34216 for the problems that causes) Expected result: the breakpoint is not triggered. Notes: -the second line of DataGridEditor.destroyItemEditor() looks like a typo: instead of addEventListener shouldn't it say removeEventListener(...)? -- This message was sent by Atlassian JIRA (v6.2#6252)