From 98368a554daed71f67055afe5f9c368e7d8f55f3 Mon Sep 17 00:00:00 2001 From: Bart van den Eijnden Date: Tue, 25 Feb 2014 14:58:16 +0100 Subject: [PATCH] Use ol.xml.pushParseAndPop instead --- src/ol/format/gmlformat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/format/gmlformat.js b/src/ol/format/gmlformat.js index a66a37cfcf..3767012bde 100644 --- a/src/ol/format/gmlformat.js +++ b/src/ol/format/gmlformat.js @@ -73,8 +73,8 @@ ol.format.GML.readFeatures_ = function(node, objectStack) { var featureType = goog.object.get(context, 'featureType'); var features; if (localName == 'FeatureCollection') { - ol.xml.parse(ol.format.GML.FEATURE_COLLECTION_PARSERS_, node, objectStack); - features = objectStack.pop(); + features = ol.xml.pushParseAndPop(null, + ol.format.GML.FEATURE_COLLECTION_PARSERS_, node, objectStack); } else if (localName == 'featureMembers') { var parsers = {}; var parsersNS = {};