This does not work in chrome, **but works like a charm in firefox** why is that? I have tried numerous combinations but noone of the events are fired in chrome.

I have debugged I thoroughly, and I does go through all of the code! 

Im running Chrome Version 31.0.1650.63 m

```
for(var x = 0; x < 2; x++)
{
    while(bFinishCheck == false)
    {
        img = new Image();

        img.addEventListener("load", function() {
            // coming soon
            alert('inside load');
        }, false);
        img.addEventListener("error", function() {
            // coming soon
            alert('inside rror');
        }, false);
        if (bCheckEnabled) {

            img.src = 'Images/Cart/' + typeOfTiles[typeCounter] + '/' + tileCounter + '.png';

            console.log(img.src);
            tileCounter++;
        }   
    }
}   
return imgArray;

```