Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33740

Change UIComponent function removedFromStageHandler from private to protected to allow override

    XMLWordPrintableJSON

Details

    Description

      It would be more safe and faster if it was possible to override the function UIComponent::removedFromStageHandler (and also, remove) instead to have to add and remove events listeners for those who extends UI classes.
      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 = true; removedFromStage(); // proposition: add this call }

      // proposition: new function protected, dedicated to override
      /** Override this allow to be called when this is removing from stage. Avoids to have to listen REMOVED_FROM_STAGE event. */
      protected function removedFromStage():void {}

      Attachments

        Activity

          People

            jmclean Justin Mclean
            dal David Lantier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified