[
https://issues.apache.org/jira/browse/SLING-252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570609#action_12570609
]
Bertrand Delacretaz commented on SLING-252:
-------------------------------------------
Ok, I'll update the 15 minutes time when I find 15 minutes to do it ;-)
Note that resource.node still works as before in server-side javascript,
currentNode is just a convenience.
> Add a "currentNode" variable to the scripting context for all languages
> -----------------------------------------------------------------------
>
> Key: SLING-252
> URL: https://issues.apache.org/jira/browse/SLING-252
> Project: Sling
> Issue Type: Improvement
> Components: Scripting
> Reporter: Bertrand Delacretaz
> Assignee: Bertrand Delacretaz
> Priority: Minor
> Fix For: 2.0.0
>
>
> As discussed in http://markmail.org/message/vokst7wb4k322zdc
> currentNode = Resource.adaptTo(Node.class), so the value is null if the
> Resource does not point to a Node
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.