Less closures
This commit is contained in:
@@ -92,14 +92,15 @@ ol.interaction.Select.prototype.handleMapBrowserEvent = function(evt) {
|
|||||||
}
|
}
|
||||||
var clear = !ol.interaction.condition.shiftKeyOnly(browserEvent);
|
var clear = !ol.interaction.condition.shiftKeyOnly(browserEvent);
|
||||||
|
|
||||||
|
var that = this;
|
||||||
var select = function(featuresByLayer) {
|
var select = function(featuresByLayer) {
|
||||||
this.select(map, featuresByLayer, layers, clear);
|
that.select(map, featuresByLayer, layers, clear);
|
||||||
};
|
};
|
||||||
|
|
||||||
map.getFeatures({
|
map.getFeatures({
|
||||||
layers: layers,
|
layers: layers,
|
||||||
pixel: evt.getPixel(),
|
pixel: evt.getPixel(),
|
||||||
success: goog.bind(select, this)
|
success: select
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// TODO: Implement box selection
|
// TODO: Implement box selection
|
||||||
|
|||||||
Reference in New Issue
Block a user