From da611b9cb54ca6627b9b07a2a89a2447002a0531 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 29 Sep 2015 10:46:04 +0200 Subject: [PATCH] Use ol.array.includes instead of goog.array.indexOf --- src/ol/interaction/selectinteraction.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ol/interaction/selectinteraction.js b/src/ol/interaction/selectinteraction.js index 4d5653b863..6a84a8b477 100644 --- a/src/ol/interaction/selectinteraction.js +++ b/src/ol/interaction/selectinteraction.js @@ -265,8 +265,7 @@ ol.interaction.Select.handleEvent = function(mapBrowserEvent) { * @param {ol.layer.Layer} layer Layer. */ function(feature, layer) { - var index = goog.array.indexOf(features.getArray(), feature); - if (index == -1) { + if (!ol.array.includes(features.getArray(), feature)) { if (add || toggle) { if (this.filter_(feature, layer)) { selected.push(feature);