Re: Web IDL sequence<T> and item() method

On 12/12/11 2:21 AM, Boris Zbarsky wrote:
> Last I checked, defining an interface that takes an in parameter that
> can be a nodelist or JS Array of nodes needs to use sequence, no? Or am
> I confusing it with array again?

The confusing thing is probably that for the case where you want to take 
in an array as a parameter, and the receiving object will not modify the 
array or keep a hold of it, both sequence<T> and T[] will work.

Received on Sunday, 11 December 2011 23:38:31 UTC