From d5310b0f739967c59227927461c0ac7d993f28b3 Mon Sep 17 00:00:00 2001 From: Ibby Date: Thu, 27 Oct 2016 08:09:36 -0400 Subject: [PATCH] fix(geolocation): fix watchPosition return type closes #741 --- src/plugins/geolocation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/geolocation.ts b/src/plugins/geolocation.ts index 539541e1..9e57a72b 100644 --- a/src/plugins/geolocation.ts +++ b/src/plugins/geolocation.ts @@ -174,7 +174,7 @@ export class Geolocation { * @param {GeolocationOptions} options The [geolocation options](https://developer.mozilla.org/en-US/docs/Web/API/PositionOptions). * @return Returns an Observable that notifies with the [position](https://developer.mozilla.org/en-US/docs/Web/API/Position) of the device, or errors. */ - static watchPosition(options?: GeolocationOptions): Observable { + static watchPosition(options?: GeolocationOptions): Observable { return new Observable( (observer: any) => { let watchId = navigator.geolocation.watchPosition(observer.next.bind(observer), observer.next.bind(observer), options);