Use Array.isArray instead of goog.isArray

This commit is contained in:
Frederic Junod committed 2016-04-04 09:06:29 +02:00
1 parent fb4992b580
commit 80e984a9c3
23 files changed
+39 -39

No files matched your search

+1 -1
View File
@@ -264,7 +264,7 @@ ol.source.ImageVector.prototype.renderFeature_ = function(feature, resolution, p
return false;
}
var i, ii, loading = false;
if (!goog.isArray(styles)) {
if (!Array.isArray(styles)) {
styles = [styles];
}
for (i = 0, ii = styles.length; i < ii; ++i) {
+1 -1
View File
@@ -172,7 +172,7 @@ ol.source.Vector = function(opt_options) {
if (options.features instanceof ol.Collection) {
collection = options.features;
features = collection.getArray();
} else if (goog.isArray(options.features)) {
} else if (Array.isArray(options.features)) {
features = options.features;
}
if (!useSpatialIndex && collection === undefined) {