diff --git a/src/ol/interaction/selectinteraction.js b/src/ol/interaction/selectinteraction.js index 559f8b1b39..2a9a984193 100644 --- a/src/ol/interaction/selectinteraction.js +++ b/src/ol/interaction/selectinteraction.js @@ -92,14 +92,15 @@ ol.interaction.Select.prototype.handleMapBrowserEvent = function(evt) { } var clear = !ol.interaction.condition.shiftKeyOnly(browserEvent); + var that = this; var select = function(featuresByLayer) { - this.select(map, featuresByLayer, layers, clear); + that.select(map, featuresByLayer, layers, clear); }; map.getFeatures({ layers: layers, pixel: evt.getPixel(), - success: goog.bind(select, this) + success: select }); } // TODO: Implement box selection