Add tests

This commit is contained in:
Andreas Hocevar
2015-06-03 12:41:35 +02:00
parent 5ae2521724
commit 5d9708be11
2 changed files with 37 additions and 4 deletions

View File

@@ -148,10 +148,8 @@ ol.tilegrid.TileGrid = function(options) {
}
return tileRange;
}, this);
} else if (goog.isDef(extent)) {
if (!goog.isNull(extent)) {
this.calculateTileRanges_(extent);
}
} else if (goog.isDefAndNotNull(extent)) {
this.calculateTileRanges_(extent);
}
/**