Skip to content

Commit

Permalink
Initialize tilesToLoad variable on GridLayer creation
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw authored and mourner committed Oct 21, 2014
1 parent b42500b commit fefe4b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/layer/tile/GridLayer.js
Expand Up @@ -37,6 +37,10 @@ L.GridLayer = L.Layer.extend({

this._levels = {};

this._tiles = {};
this._tilesToLoad = 0;
this._tilesTotal = 0;

this._reset();
this._update();
},
Expand Down

0 comments on commit fefe4b7

Please sign in to comment.