Use Array.isArray instead of goog.isArray

This commit is contained in:
Frederic Junod
2016-02-08 14:04:29 +01:00
parent fb4992b580
commit 80e984a9c3
23 changed files with 39 additions and 39 deletions

View File

@@ -61,7 +61,7 @@ ol.layer.Group = function(opt_options) {
this.handleLayersChanged_, this);
if (layers) {
if (goog.isArray(layers)) {
if (Array.isArray(layers)) {
layers = new ol.Collection(layers.slice());
} else {
goog.asserts.assertInstanceof(layers, ol.Collection,