When declaring an array, I can do it like this:
var positions = [];
Alternatively, I can also declare it like this:
var positions = new array();
Both methods are acceptable.
Later in the script, I add a value like this:
positions[0].top = 0;
Everything works perfectly in all browsers except for IE7, which throws the following error:
Error: Unable to set value of the property 'top': object is null or undefined
Is there another approach I should take to populate the array in IE7?