Merge pull request #5667 from ahocevar/proj-get-null

Do not return undefined from ol.proj.get
This commit is contained in:
Andreas Hocevar
2016-08-02 13:47:54 +02:00
committed by GitHub

View File

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