From 3a2c8f3e267b7ac4e12137704a39cf82ecbbf036 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Fri, 10 Jun 2016 13:59:51 -0500 Subject: [PATCH] Update README.md Incorrect usage of watchPosition().subscribe and then unsubscribe --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 3fcc8b0ee..2da5cf8ed 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,7 @@ Geolocation.getCurrentPosition().then(pos => { console.log('lat: ' + pos.coords.latitude + ', lon: ' + pos.coords.longitude); }); -let watch = Geolocation.watchPosition(); -watch.subscribe(pos => { +let watch = Geolocation.watchPosition().subscribe(pos => { console.log('lat: ' + pos.coords.latitude + ', lon: ' + pos.coords.longitude); });