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

Justin Mclean updated FLEX-25337:
---------------------------------

    Labels: Javascript easyfix easytest  (was: )
    
> Accidental global variable newType in FABridge.js
> -------------------------------------------------
>
>                 Key: FLEX-25337
>                 URL: https://issues.apache.org/jira/browse/FLEX-25337
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FABridge
>    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: Javascript, easyfix, easytest
>
> On line 365 of FABridge.js:
> 363:    addTypeDataToCache: function(typeData)
> 364:    {
> 365:        newType = new ASProxy(this, typeData.name);
> 366:        var accessors = typeData.accessors;
> newType variable is only used inside the addTypeDataToCache() function and 
> therefore should be local, not global.
> Proposed fix:
> Prefix it with 'var' keyword:
> 365:        var newType = new ASProxy(this, typeData.name);

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