[
https://issues.apache.org/jira/browse/SLING-4506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Radu Cotescu resolved SLING-4506.
---------------------------------
Resolution: Fixed
Fixed in
[r1666983|https://svn.apache.org/viewvc?view=revision&revision=1666983].
> Java APIs not consistently available in JavaScript
> --------------------------------------------------
>
> Key: SLING-4506
> URL: https://issues.apache.org/jira/browse/SLING-4506
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Reporter: Radu Cotescu
> Assignee: Radu Cotescu
> Fix For: Scripting Sightly JS Use Provider 1.0.0
>
>
> Some Use API methods are not consistent between the Java and the JavaScript
> implementations.
> The {{$\{resource.getName\}}} expression works in Sightly but
> {{resource.getName()}} throws an error in JavaScript Use objects:
> {noformat}
> org.mozilla.javascript.EcmaError: TypeError: Cannot find function getName
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)