Do not return undefined from ol.proj.get

This commit is contained in:
Andreas Hocevar
2016-08-02 13:36:03 +02:00
parent 3d57ea45cb
commit 4227f8034b

View File

@@ -678,10 +678,8 @@ ol.proj.get = function(projectionLike) {
ol.proj.addProjection(projection);
}
}
} else {
projection = null;
}
return projection;
return projection || null;
};