openlayers/openlayers — pull request #745 by AugustusKling (2012-11-07 09:11:04+00:00)
Title: Remove error class from image element that might be present from previous load attempts

When image elements are reused to load other tiles it could happen that the `olImageLoadError` CSS class from the previous image is still assigned and leaves a correctly loaded image invisible.

Or in other words:
* The first image fails to load, therefore `olImageLoadError` is assigned to hide the image element
* The image element gets reused to load and display another tile (which loads fine)
* Because the previously assigned class is still there the second tile is never shown

This patch makes sure the `olImageLoadError` class is removed when an image loaded successfully so that failed images don't prevent other images from being shown later.