Better typing

This commit is contained in:
Éric Lemoine
2014-01-13 12:03:20 +01:00
parent b52b2223a6
commit 542cf80da9
5 changed files with 5 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ ol.renderer.canvas.ImageLayer.prototype.forEachFeatureAtPixel =
return source.forEachFeatureAtPixel(extent, resolution, rotation, coordinate,
/**
* @param {ol.Feature} feature Feature.
* @return {?} Callback result.
*/
function(feature) {
return callback.call(opt_obj, feature, this);

View File

@@ -104,6 +104,7 @@ ol.renderer.canvas.VectorLayer.prototype.forEachFeatureAtPixel =
/**
* @param {ol.geom.Geometry} geometry Geometry.
* @param {Object} data Data.
* @return {?} Callback result.
*/
function(geometry, data) {
var feature = /** @type {ol.Feature} */ (data);

View File

@@ -60,6 +60,7 @@ ol.renderer.dom.ImageLayer.prototype.forEachFeatureAtPixel =
return source.forEachFeatureAtPixel(extent, resolution, rotation, coordinate,
/**
* @param {ol.Feature} feature Feature.
* @return {?} Callback result.
*/
function(feature) {
return callback.call(opt_obj, feature, this);

View File

@@ -86,6 +86,7 @@ ol.renderer.webgl.ImageLayer.prototype.forEachFeatureAtPixel =
return source.forEachFeatureAtPixel(extent, resolution, rotation, coordinate,
/**
* @param {ol.Feature} feature Feature.
* @return {?} Callback result.
*/
function(feature) {
return callback.call(opt_obj, feature, this);

View File

@@ -160,6 +160,7 @@ ol.source.ImageVector.prototype.forEachFeatureAtPixel =
/**
* @param {ol.geom.Geometry} geometry Geometry.
* @param {Object} data Data.
* @return {?} Callback result.
*/
function(geometry, data) {
var feature = /** @type {ol.Feature} */ (data);