From ae657518c5b7800a07e94105699832e6ab88001f Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Tue, 29 Sep 2015 15:26:58 +0200 Subject: [PATCH] Remove goog.isNull in view class --- src/ol/view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/view.js b/src/ol/view.js index 2e3f161575..473da2d4e2 100644 --- a/src/ol/view.js +++ b/src/ol/view.js @@ -679,7 +679,7 @@ ol.View.createResolutionConstraint_ = function(options) { // calculate the default min and max resolution var projection = ol.proj.createProjection(options.projection, 'EPSG:3857'); var extent = projection.getExtent(); - var size = goog.isNull(extent) ? + var size = !extent ? // use an extent that can fit the whole world if need be 360 * ol.proj.METERS_PER_UNIT[ol.proj.Units.DEGREES] / ol.proj.METERS_PER_UNIT[projection.getUnits()] :