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

View File

@@ -78,7 +78,7 @@ ol.FeatureOverlay = function(opt_options) {
if (goog.isDef(options.features)) {
if (goog.isArray(options.features)) {
this.setFeatures(new ol.Collection(goog.array.clone(options.features)));
this.setFeatures(new ol.Collection(options.features.slice()));
} else {
goog.asserts.assertInstanceof(options.features, ol.Collection);
this.setFeatures(options.features);