Use shift, not pop, for queue.

This commit is contained in:
FrozenCow 2011-08-10 23:32:33 +02:00
parent e51733f9eb
commit 016dae2c77

View file

@ -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();