Permalink
Browse files

Pass object

  • Loading branch information...
1 parent 900711b commit 2b54c2889083709cd1d7320fad377166f9339a5c @CodeJosch committed Aug 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/layer/tile/TileLayer.js
@@ -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 = '';

0 comments on commit 2b54c28

Please sign in to comment.