Avoid use of goog.array.clone with arrays
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user