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 -1
View File
@@ -58,7 +58,7 @@ ol.layer.Group = function(opt_options) {
if (goog.isDefAndNotNull(layers)) {
if (goog.isArray(layers)) {
layers = new ol.Collection(goog.array.clone(layers));
layers = new ol.Collection(layers.slice());
} else {
goog.asserts.assertInstanceof(layers, ol.Collection);
layers = layers;