Results 1 to 3 of 3

Thread: Minefield: set is not a function. wtf?

  1. #1
    Member Coolcat's Avatar
    Join Date
    Oct 2009
    Location
    NRW, Germany
    Posts
    75

    Minefield: set is not a function. wtf?

    Minefield does no longer support WebGLFloatArray.set?
    My old application which worked before does throw now an error "set is not a function".

    WTF?

  2. #2
    Member Coolcat's Avatar
    Join Date
    Oct 2009
    Location
    NRW, Germany
    Posts
    75

    Re: Minefield: set is not a function. wtf?

    For some reason Array-Access does now work:
    Code :
    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?

  3. #3

    Re: Minefield: set is not a function. wtf?

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •