From 390153adc863eb4403d804c2b7a34332b6d57ac5 Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Sat, 19 Sep 2015 04:52:09 +0200 Subject: [PATCH] Remove goog.isDef from coordinate.js --- src/ol/coordinate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/coordinate.js b/src/ol/coordinate.js index 3a9b2a5c45..3e29571892 100644 --- a/src/ol/coordinate.js +++ b/src/ol/coordinate.js @@ -164,7 +164,7 @@ ol.coordinate.degreesToStringHDMS_ = function(degrees, hemispheres) { * @api stable */ ol.coordinate.format = function(coordinate, template, opt_fractionDigits) { - if (goog.isDef(coordinate)) { + if (coordinate) { return template .replace('{x}', coordinate[0].toFixed(opt_fractionDigits)) .replace('{y}', coordinate[1].toFixed(opt_fractionDigits)); @@ -295,7 +295,7 @@ ol.coordinate.squaredDistanceToSegment = function(coordinate, segment) { * @api stable */ ol.coordinate.toStringHDMS = function(coordinate) { - if (goog.isDef(coordinate)) { + if (coordinate) { return ol.coordinate.degreesToStringHDMS_(coordinate[1], 'NS') + ' ' + ol.coordinate.degreesToStringHDMS_(coordinate[0], 'EW'); } else {