[ 
https://issues.apache.org/jira/browse/FLEX-27712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Mclean updated FLEX-27712:
---------------------------------

    Labels: performance  (was: )
    
> Check for listeners before dispatching them
> -------------------------------------------
>
>                 Key: FLEX-27712
>                 URL: https://issues.apache.org/jira/browse/FLEX-27712
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: .Unspecified - Framework
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
>            Reporter: Adobe JIRA
>              Labels: performance
>
> In the UIComponent class there are places where event listeners are being 
> created and dispatched without checking if listeners exist. This may help 
> performance. 
> // Original Code
> dispatchEvent(new FlexEvent(FlexEvent.CREATION_COMPLETE));
> // possible change
> if (hasEventListener(FlexEvent.CREATION_COMPLETE))
>      dispatchEvent(new FlexEvent(FlexEvent.CREATION_COMPLETE));

--
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

Reply via email to