Use ol.array.includes instead of goog.array.indexOf

This commit is contained in:
Frederic Junod
2015-09-29 10:46:04 +02:00
parent 88c3891bef
commit da611b9cb5

View File

@@ -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);