handleMapPostrender returns undefined

Without this we get the following warning from the compiler:

JSC_EXPORTED_FUNCTION_UNKNOWN_RETURN_TYPE. Unable to determine return type for exported function ol.control.Control.prototype.handleMapPostrender at ../src/ol/control/control.js line 79 : 51

I'm not sure why explicitely specifying the return type is required here.
This commit is contained in:
Éric Lemoine
2013-05-10 14:04:50 +02:00
parent 3a4fc2a99a
commit 124b195d3e

View File

@@ -17,6 +17,7 @@ oli.control.Control = function() {};
/**
* @param {ol.MapEvent} mapEvent Map event.
* @return {undefined} Undefined.
*/
oli.control.Control.prototype.handleMapPostrender = function(mapEvent) {};