for(var i=0; i<Elements.length; i++)
{ if( Elements[i].y < 0 )
{
console.log({y:Elements[i].y, E:Elements[i]});
}
}
==========================================================
and the console shows to me next result:
Object {y: -100, E: Element}
E: Element
x: 200
y: 200
__proto__: Element
y: -100
__proto__: Object
==============================
It is pretty strange. The Elements[i].y has -100, whereas within itself Elements[i] the "y" has 200
One object has different data at a time.
Example of the console is for illustrative purposes.
The expected value is 200 instead of -100.
What's wrong? Please help.