Remove use of goog.isDef

This commit is contained in:
Petr Sloup
2015-09-29 13:53:24 +02:00
parent 783acfa961
commit f3d5d16a82
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -46,11 +46,11 @@ ol.reproj.calculateSourceResolution = function(sourceProj, targetProj,
targetProj.getPointResolution(targetResolution, targetCenter);
var targetMPU = targetProj.getMetersPerUnit();
if (goog.isDef(targetMPU)) {
if (targetMPU !== undefined) {
sourceResolution *= targetMPU;
}
var sourceMPU = sourceProj.getMetersPerUnit();
if (goog.isDef(sourceMPU)) {
if (sourceMPU !== undefined) {
sourceResolution /= sourceMPU;
}