TogglePanel.js: Array should not be iterated via for..in
--------------------------------------------------------

                 Key: RF-10449
                 URL: https://issues.jboss.org/browse/RF-10449
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: component-output
    Affects Versions: 4.0.0.CR1
            Reporter: Nick Belaevski
            Assignee: Alex Kolonitsky
            Priority: Minor
             Fix For: 4.0.0.CR1


togglePanel.js uses the following:


            this.items = [];

and then:


            for (var i in this.items) {
                if (!this.items[i].disabled && this.items[i].getName() === 
itemName) {
                    return parseInt(i);
                }
            }

Iteration over Array should be using 'for' cycle around [0..items.length) and 
not for..in

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to