Use opt_this instead of opt_obj in ol.renderer.Layer

This commit is contained in:
Tom Payne
2014-01-15 15:00:34 +01:00
parent 010f643f8f
commit 1df516e14d
5 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -50,7 +50,7 @@ goog.inherits(ol.renderer.dom.ImageLayer, ol.renderer.dom.Layer);
* @inheritDoc
*/
ol.renderer.dom.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);
@@ -63,7 +63,7 @@ ol.renderer.dom.ImageLayer.prototype.forEachFeatureAtPixel =
* @return {?} Callback result.
*/
function(feature) {
return callback.call(opt_obj, feature, this);
return callback.call(opt_this, feature, this);
});
};