Use Infinity rather than undefined to drop tiles

This commit is contained in:
Tom Payne
2013-01-19 15:10:22 +01:00
parent 4846a6a7b3
commit a8dc810696
3 changed files with 13 additions and 7 deletions

View File

@@ -53,7 +53,7 @@ describe('ol.TileQueue', function() {
var i = 0;
tq.tilePriorityFunction_ = function() {
if ((i++) % 2 === 0) {
return undefined;
return ol.TileQueue.DROP;
}
return Math.floor(Math.random() * 100);
};