openlayers/openlayers — pull request #843 by ahocevar (2013-01-17 15:24:37+00:00)
Title: Safeguard against listeners that recreate the grid

We need to handle the backbuffer before we fire the loadend event.
Otherwise listeners that call e.g. mergeNewParams() will cause the
backbuffer removal code to fail, because tile.imgDiv (and hence
this._transitionElement) will be null.