PDA

View Full Version : Minefield: set is not a function. wtf?



Coolcat
01-30-2010, 08:02 AM
Minefield does no longer support WebGLFloatArray.set?
My old application which worked before does throw now an error "set is not a function".

WTF? :shock:

Coolcat
01-30-2010, 08:21 AM
For some reason Array-Access does now work:

wglArray[i] = value;
That's nice, but does this work in Chrome, too? Minefield people don't care about the spec, which defines set/get only? Is there a new spec?

hansschmucker
02-06-2010, 01:46 PM
The current spec defines both, so the array index notation should work in Chrome too:

set(index, value)
Sets the element at the given index to the given value. If the index is out of range, an exception is raised. This is an index setter function, and may be invoked via array index syntax where applicable.