A lot of scripts dynamically create images, such as
im = new Image();
im.src = 'http://...';
I am looking for overloading of constructor for Image class with feature to add a reference of each newly created object to some array.
Let's say I have
var dynImages = new Array;
And then I want each new dynamically created image to be in my dynImages array, so then I can anytime access src of each of image that was created by new Image() by dynImages.
Possible?