Use new Geolocation types
This commit is contained in:
@@ -34,7 +34,7 @@ const Property = {
|
|||||||
*/
|
*/
|
||||||
class GeolocationError extends BaseEvent {
|
class GeolocationError extends BaseEvent {
|
||||||
/**
|
/**
|
||||||
* @param {PositionError} error error object.
|
* @param {GeolocationPositionError} error error object.
|
||||||
*/
|
*/
|
||||||
constructor(error) {
|
constructor(error) {
|
||||||
super(EventType.ERROR);
|
super(EventType.ERROR);
|
||||||
@@ -176,7 +176,7 @@ class Geolocation extends BaseObject {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @param {Position} position position event.
|
* @param {GeolocationPosition} position position event.
|
||||||
*/
|
*/
|
||||||
positionChange_(position) {
|
positionChange_(position) {
|
||||||
const coords = position.coords;
|
const coords = position.coords;
|
||||||
@@ -210,7 +210,7 @@ class Geolocation extends BaseObject {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @param {PositionError} error error object.
|
* @param {GeolocationPositionError} error error object.
|
||||||
*/
|
*/
|
||||||
positionError_(error) {
|
positionError_(error) {
|
||||||
this.dispatchEvent(new GeolocationError(error));
|
this.dispatchEvent(new GeolocationError(error));
|
||||||
|
|||||||
Reference in New Issue
Block a user