Use opt_this instead of opt_obj in ol.renderer.Layer
This commit is contained in:
@@ -45,7 +45,7 @@ goog.inherits(ol.renderer.canvas.ImageLayer, ol.renderer.canvas.Layer);
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.renderer.canvas.ImageLayer.prototype.forEachFeatureAtPixel =
|
||||
function(coordinate, frameState, callback, opt_obj) {
|
||||
function(coordinate, frameState, callback, opt_this) {
|
||||
var layer = this.getLayer();
|
||||
var source = layer.getSource();
|
||||
goog.asserts.assertInstanceof(source, ol.source.Image);
|
||||
@@ -58,7 +58,7 @@ ol.renderer.canvas.ImageLayer.prototype.forEachFeatureAtPixel =
|
||||
* @return {?} Callback result.
|
||||
*/
|
||||
function(feature) {
|
||||
return callback.call(opt_obj, feature, this);
|
||||
return callback.call(opt_this, feature, this);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user