GithubHelp home page GithubHelp logo

Comments (6)

rafaelw avatar rafaelw commented on July 18, 2024

Yeah, unfortunately this isn't going to work any time soon. Out of curiosity, what are you trying to do? What's the specific use case?

from observe-js.

speigg avatar speigg commented on July 18, 2024

I'm observing THREE.Matrix4.prototype.element typed arrays from the three.js library. It works fine with the ObjectObserver though, which is what I'm using instead.

from observe-js.

rafaelw avatar rafaelw commented on July 18, 2024

It won't work with Object.observe enabled (which has is the default for Chrome Canary and will ship with M35).

from observe-js.

speigg avatar speigg commented on July 18, 2024

I've been using Chrome Canary 35 to observe THREE.Matrix4.prototype.element typed arrays with ObjectObserver just fine. You mean it won't work with the ArrayObserver (or Array.observe) ?

from observe-js.

speigg avatar speigg commented on July 18, 2024

Okay, so Object.observe seems to partially work with typed arrays. As long as the typed array is manipulated directly, it works fine. For example:

// arr is a TypedArray observed with ObjectObserver when Object.observe is enabled
arr[0] = 2 // this will work
arr.set( anotherArray ) // works if the argument is regular array, but not a typed array
arr[0] = 3 // this will work again

This seems like a bug in the implementation of Object.observe

from observe-js.

speigg avatar speigg commented on July 18, 2024

argh, never-mind... I don't know what's going on. Sometimes it seems to work, sometimes not.

from observe-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.