Use shift, not pop, for queue.
This commit is contained in:
parent
91b9b456b5
commit
f5f9c3bb31
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ var DynmapTileLayer = L.TileLayer.extend({
|
|||
},
|
||||
_nextLoadTile: function() {
|
||||
if (this._loadingTiles.length > 4) { return; }
|
||||
var next = this._loadQueue.pop();
|
||||
var next = this._loadQueue.shift();
|
||||
if (!next) { return; }
|
||||
|
||||
next.loadSrc();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue