You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/06/24 23:30:20 UTC

[jira] [Updated] (FLEX-20726) Only dispatchEvent if [Bindable] hasEventListener

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

Justin Mclean updated FLEX-20726:
---------------------------------

    Labels: easyfix easytext  (was: )
    
> Only dispatchEvent if [Bindable] hasEventListener
> -------------------------------------------------
>
>                 Key: FLEX-20726
>                 URL: https://issues.apache.org/jira/browse/FLEX-20726
>             Project: Apache Flex
>          Issue Type: Improvement
>          Components: Spark: Effects
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Browser: Safari
> Language Found: English
>            Reporter: Adobe JIRA
>              Labels: easyfix, easytext
>
> Steps to reproduce:
> 1. Animate x, y, width, height, or alpha
> 2. Don't bind to any of those properties
> 3. 
>  
>  Actual Results:
>  Every frame it dispatches a ton of events because in the setters you have "dispatchEvent(new Event("xChanged"))" or whatever.  This should be more like: dispatchPropertyChangeEvent("xChanged");
> function dispatchPropertyChangeEvent(type:String):void {
>      if (hasEventListener(type)) dispatchEvent(new Event(type));
> } 
>  
>  Expected Results:
>  Don't dispatch events if I'm not binding.
>  
>  Workaround (if any):
>  None, unless we change the source.

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