Avoid use of goog.array.clone with arrays

This commit is contained in:
Tim Schaub
2015-01-15 12:39:36 -07:00
parent c23ae78978
commit 06dc0902c6
5 changed files with 7 additions and 8 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
goog.provide('ol.format.Feature');
goog.require('goog.array');
goog.require('ol.geom.Geometry');
goog.require('ol.proj');
@@ -177,7 +176,7 @@ ol.format.Feature.transformWithOptions = function(
// FIXME this is necessary because ol.format.GML treats extents
// as geometries
return ol.proj.transformExtent(
write ? goog.array.clone(geometry) : geometry,
write ? geometry.slice() : geometry,
write ? featureProjection : dataProjection,
write ? dataProjection : featureProjection);
}