Merge pull request #4845 from gberaudo/fix_geolocation_error_type

Fix geolocation error cast
This commit is contained in:
Frédéric Junod
2016-02-17 11:02:30 +01:00

View File

@@ -191,7 +191,7 @@ ol.Geolocation.prototype.positionChange_ = function(position) {
ol.Geolocation.prototype.positionError_ = function(error) {
error.type = ol.events.EventType.ERROR;
this.setTracking(false);
this.dispatchEvent(/** @type {{type: string}} */ (error));
this.dispatchEvent(/** @type {{type: string, target: undefined}} */ (error));
};