Document existing error event type

This commit is contained in:
Tim Schaub
2019-05-14 14:28:00 -06:00
parent 3a1d927c41
commit 811e5f60eb
2 changed files with 8 additions and 8 deletions

View File

@@ -83,7 +83,7 @@ class GeolocationError extends Event {
* window.console.log(geolocation.getPosition());
* });
*
* @fires error
* @fires module:ol/events/Event~Event#event:error
* @api
*/
class Geolocation extends BaseObject {
@@ -204,12 +204,6 @@ class Geolocation extends BaseObject {
this.changed();
}
/**
* Triggered when the Geolocation returns an error.
* @event error
* @api
*/
/**
* @private
* @param {PositionError} error error object.

View File

@@ -14,6 +14,13 @@ export default {
*/
CHANGE: 'change',
/**
* Generic error event. Triggered when an error occurs.
* @event module:ol/events/Event~Event#error
* @api
*/
ERROR: 'error',
CLEAR: 'clear',
CONTEXTMENU: 'contextmenu',
CLICK: 'click',
@@ -21,7 +28,6 @@ export default {
DRAGENTER: 'dragenter',
DRAGOVER: 'dragover',
DROP: 'drop',
ERROR: 'error',
KEYDOWN: 'keydown',
KEYPRESS: 'keypress',
LOAD: 'load',