[whatwg] Canvas: dash list API

Anne van Kesteren annevk at annevk.nl
Sat Dec 22 06:16:12 PST 2012


On Sat, Dec 22, 2012 at 3:07 PM, Cameron McCormack <cam at mcc.id.au> wrote:
> If we don't have the type checking of array elements, and also don't need
> any noticing of individual element assignments, then we can just have a
> reference to a plain Array object and look at its elements at the time the
> dash array is needed.  That could preserve the author expectation that after
> assigning a new Array object to the property you would get the same object
> back when getting the property.

If we make fileList and such assignable you'd also have this
discrepancy. I think that's okay. Alternatively, or in addition, we
can have new NumberArray(Array).


-- 
http://annevankesteren.nl/



More information about the whatwg mailing list