Closed noisiak closed 6 years ago
Should be watching properties of HTML elements and other non-plain objects?
Not really. I just need it to watch the "position" of the "object".
I found the reason: you need to give the full path of property: object.position, instead of just "position"
Hello. I just got this error and I am not sure what is causing it. I am working with the Three.js library.
It happens when I watch for the "position" attribute from my object. The position attribute it's a vector with 3 properties (x,y,z).
The error happens after I call this:
watch(object, "position", function(){ // console.log("object changed!"); });
Any idea of what could be the cause of this error?
Here is the log:
Curiously, the watcher itself does work as intended, so I not sure why the error is happening.