isDefAndNotNull -> !isNull

This commit is contained in:
Thomas Hirsch
2014-12-01 12:57:35 +01:00
parent d5bafc5e9f
commit 8e4d7c0715
3 changed files with 3 additions and 3 deletions

View File

@@ -107,7 +107,7 @@ ol.renderer.dom.ImageLayer.prototype.prepareFrame =
!ol.extent.isEmpty(renderedExtent)) {
var projection = viewState.projection;
var sourceProjection = imageSource.getProjection();
if (goog.isDefAndNotNull(sourceProjection)) {
if (!goog.isNull(sourceProjection)) {
goog.asserts.assert(ol.proj.equivalent(projection, sourceProjection));
projection = sourceProjection;
}