Pass object

This commit is contained in:
CodeJosch 2011-08-30 17:28:45 +02:00
parent 900711b59a
commit 2b54c28890

View File

@ -177,7 +177,7 @@ L.TileLayer = L.Class.extend({
// remove tile if it's out of bounds
if (x < bounds.min.x || x > bounds.max.x || y < bounds.min.y || y > bounds.max.y) {
this.fire("tileunload",this._tiles[key]);
this.fire("tileunload", {tile: this._tiles[key], url: this._tiles[key].src});
// evil, don't do this! crashes Android 3, produces load errors, doesn't solve memory leaks
// this._tiles[key].src = '';