[ 
https://issues.apache.org/jira/browse/SLING-3413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13910505#comment-13910505
 ] 

Felix Meschberger commented on SLING-3413:
------------------------------------------

Sounds reasonable, except for *list*Children returning a Map; maybe another 
name makes more sense ?

Also not sure about the dual-nature of the listChildren method (this might be 
customary in JS, with my Java hat on it looks strange).

Can the function given to listChildren cause the "loop" to terminate early ?

> add support for getName() and getChildren() to JS Resource API
> --------------------------------------------------------------
>
>                 Key: SLING-3413
>                 URL: https://issues.apache.org/jira/browse/SLING-3413
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>            Reporter: Justin Edelson
>             Fix For: Scripting JavaScript 2.0.14
>
>
> The JS API used to wrap Resources doesn't support getting a list of children 
> or the resource's name. This should be added.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to