Hi Clemens,

This is a problem of an early decision to convert the result of a
getNodes() call into a JavaScript object where the returned nodes are
properties.

Thus the result is not a NodeIterator, unfortunately.

Regards
Felix

On 19.08.2010 15:37, Clemens Wyss wrote:
> my esp script starts as follows:
> if (currentNode)
> {
>   var nodes = currentNode.getNodes( );
> 
>   var size = nodes.getSize();
> ...
> 
> I keep getting:
> Uncaught SlingException org.mozilla.javascript.EcmaError: TypeError: getSize 
> is not a function, it is org.mozilla.javascript.Undefined
> 
> what am I missing? I know I shouldn't be usign currentNode at all, but after 
> all currentNode is not null and the doc says that getNodes() always returns a 
> NodeIterator...

Reply via email to