Use shift, not pop, for queue.

This commit is contained in:
FrozenCow 2011-08-10 23:32:33 +02:00
parent 91b9b456b5
commit f5f9c3bb31

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