Hi,
load_image:function(){
var img = new Asset.image(this.fake_data[this.image_index].src,
{
onLoad:function(img_tag){
console.log(img_tag);
this.image_index += 1;
if(this.image_index < this.fake_data.length){
this.load_image();
}
}.bind(this)//fine onload
});//end asset
}
So, the problem here is that onLoad seems not to work. I'm doing
something worng, I guess.
http://reghellin.com/debug/image-preloader/
You can see that the onLoad event (see console.log(img_tag);) will
fire soon for all images, while in fact, images are still loading (see
the net traces in firebug)
Why?