From e884a8704d5482967ed942ba468d9a352d6d3784 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 23 Sep 2015 12:17:02 +0200 Subject: [PATCH] Remove use of goog.object.containsKey --- src/ol/format/gpxformat.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ol/format/gpxformat.js b/src/ol/format/gpxformat.js index 1c3f998a24..fd4aa70a42 100644 --- a/src/ol/format/gpxformat.js +++ b/src/ol/format/gpxformat.js @@ -3,7 +3,6 @@ goog.provide('ol.format.GPX'); goog.require('goog.array'); goog.require('goog.asserts'); goog.require('goog.dom.NodeType'); -goog.require('goog.object'); goog.require('ol.Feature'); goog.require('ol.format.Feature'); goog.require('ol.format.XMLFeature'); @@ -71,14 +70,14 @@ ol.format.GPX.appendCoordinate_ = function(flatCoordinates, node, values) { flatCoordinates.push( parseFloat(node.getAttribute('lon')), parseFloat(node.getAttribute('lat'))); - if (goog.object.containsKey(values, 'ele')) { + if ('ele' in values) { flatCoordinates.push( /** @type {number} */ (values['ele'])); delete values['ele']; } else { flatCoordinates.push(0); } - if (goog.object.containsKey(values, 'time')) { + if ('time' in values) { flatCoordinates.push( /** @type {number} */ (values['time'])); delete values['time'];