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 21C9710993 for ; Wed, 18 Sep 2013 08:03:43 +0000 (UTC) Received: (qmail 10214 invoked by uid 500); 18 Sep 2013 08:01:59 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 10181 invoked by uid 500); 18 Sep 2013 08:01:57 -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 10164 invoked by uid 99); 18 Sep 2013 08:01:56 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Sep 2013 08:01:56 +0000 Date: Wed, 18 Sep 2013 08:01:56 +0000 (UTC) From: "David Lantier (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-33740) Change UIComponent function removedFromStageHandler from private to protected to allow override MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-33740?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1377= 0546#comment-13770546 ]=20 David Lantier commented on FLEX-33740: -------------------------------------- Yes, that's possible; may be better.=20 Adding a method was to avoid anyone to forgot super() =E2=80=A6 but I think= you are right, simply set removedFromStageHandler protected is more clean. Thanks for your answer. =20 > Change UIComponent function removedFromStageHandler from private to prote= cted to allow override > -------------------------------------------------------------------------= ---------------------- > > Key: FLEX-33740 > URL: https://issues.apache.org/jira/browse/FLEX-33740 > Project: Apache Flex > Issue Type: Improvement > Components: .Unspecified - Framework > Affects Versions: Apache Flex 4.10.0 > Environment: Gui framework > Reporter: David Lantier > Labels: features, performance > Original Estimate: 24h > Remaining Estimate: 24h > > It would be more safe and faster if it was possible to override the funct= ion UIComponent::removedFromStageHandler (and also, remove) instead to have= to add and remove events listeners for those who extends UI classes.=20 > Have to check if new proposed method name "removedFromStage" not used by = any component, or choose another. > Example: > private function removedFromStageHandler(event:Event):void > { > _systemManagerDirty =3D true; > =09removedFromStage(); // proposition: add this call > } > // proposition: new function protected, dedicated to override > /** Override this allow to be called when this is removing from stage. Av= oids to have to listen REMOVED_FROM_STAGE event. */ > protected function removedFromStage():void {} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira