fix(geolocation): call correct clearFunction

This commit is contained in:
Tim Lancina
2016-02-08 13:06:22 -06:00
parent 8f27fc9e51
commit 9e86a40034
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ declare var window;
* })
*
* let watch = Geolocation.watchPosition();
* watch.source.subscribe((data) => {
* watch.subscribe((data) => {
* //data.coords.latitude
* //data.coords.longitude
* })
@@ -35,7 +35,7 @@ export class Geolocation {
@Cordova({
callbackOrder: 'reverse',
observable: true,
clearFunction: 'clearWatch()'
clearFunction: 'clearWatch'
})
static watchPosition(options:any){};
}