[ https://issues.apache.org/jira/browse/SLING-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger resolved SLING-427. ------------------------------------- Resolution: Fixed Fix Version/s: 2.0.0 Patch applied in Rev. 654516. Thanks for reporting this issue and providing a patch. Please close this issue, if it fixes your needs. > [Javascript] Make ScriptableItemMap behave like an Array > -------------------------------------------------------- > > Key: SLING-427 > URL: https://issues.apache.org/jira/browse/SLING-427 > Project: Sling > Issue Type: Improvement > Components: Scripting > Reporter: Lars Trieloff > Assignee: Felix Meschberger > Priority: Minor > Fix For: 2.0.0 > > Attachments: SLING-427.patch > > > The ScriptableItemMap which wraps an Iterator for Javascript scripts is nice, > but it exposes itself as an object, not as an array, which makes it hard to > loop easily over the contents of the map. It would be nice if the Map could > expose an Array-like behavior by exposing a "length" field and allowing > indexed access to its contents (which is already in place) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.