Less closures

This commit is contained in:
ahocevar
2013-08-28 19:18:40 +02:00
parent 0c1f2328f9
commit 95cf0e1264

View File

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