fix race condition in tests

This commit is contained in:
Vladimir Agafonkin 2015-03-02 13:35:02 +02:00
parent d84c38a5a2
commit bb230d0ac2

View File

@ -552,6 +552,8 @@ L.GridLayer = L.Layer.extend({
},
_tileReady: function (coords, err, tile) {
if (!this._map) { return; }
if (err) {
this.fire('tileerror', {
error: err,