From 9e86a40034f505260533278fb7732c3e8b6bec48 Mon Sep 17 00:00:00 2001 From: Tim Lancina Date: Mon, 8 Feb 2016 13:06:22 -0600 Subject: [PATCH] fix(geolocation): call correct clearFunction --- dist/plugins/geolocation.d.ts | 2 +- dist/plugins/geolocation.js | 4 ++-- dist/plugins/geolocation.js.map | 2 +- src/plugins/geolocation.ts | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/plugins/geolocation.d.ts b/dist/plugins/geolocation.d.ts index f4bc1d853..fbf9ebebf 100644 --- a/dist/plugins/geolocation.d.ts +++ b/dist/plugins/geolocation.d.ts @@ -9,7 +9,7 @@ * }) * * let watch = Geolocation.watchPosition(); - * watch.source.subscribe((data) => { + * watch.subscribe((data) => { * //data.coords.latitude * //data.coords.longitude * }) diff --git a/dist/plugins/geolocation.js b/dist/plugins/geolocation.js index f18a77823..c7c294486 100644 --- a/dist/plugins/geolocation.js +++ b/dist/plugins/geolocation.js @@ -16,7 +16,7 @@ var plugin_1 = require('./plugin'); * }) * * let watch = Geolocation.watchPosition(); - * watch.source.subscribe((data) => { + * watch.subscribe((data) => { * //data.coords.latitude * //data.coords.longitude * }) @@ -36,7 +36,7 @@ var Geolocation = (function () { plugin_1.Cordova({ callbackOrder: 'reverse', observable: true, - clearFunction: 'clearWatch()' + clearFunction: 'clearWatch' }) ], Geolocation, "watchPosition", null); Geolocation = __decorate([ diff --git a/dist/plugins/geolocation.js.map b/dist/plugins/geolocation.js.map index a7a34091e..9099cbb28 100644 --- a/dist/plugins/geolocation.js.map +++ b/dist/plugins/geolocation.js.map @@ -1 +1 @@ -{"version":3,"file":"geolocation.js","sourceRoot":"","sources":["../../src/plugins/geolocation.ts"],"names":["Geolocation","Geolocation.constructor","Geolocation.getCurrentPosition","Geolocation.watchPosition"],"mappings":";;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAOzC;;;;;;;;;;;;;;;;GAgBG;AACH;IAAAA;IAgBAC,CAACA;IATQD,8BAAkBA,GADzBA,UAC0BA,OAAWA,IAAEE,CAACA;;IAQjCF,yBAAaA,GALpBA,UAKqBA,OAAWA,IAAEG,CAACA;;IATnCH;QAACA,gBAAOA,EAAEA;OACHA,iCAAkBA,QAAeA;IAGxCA;QAACA,gBAAOA,CAACA;YACPA,aAAaA,EAAEA,SAASA;YACxBA,UAAUA,EAAEA,IAAIA;YAChBA,aAAaA,EAAEA,cAAcA;SAC9BA,CAACA;OACKA,4BAAaA,QAAeA;IAfrCA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,aAAaA;YACnBA,MAAMA,EAAEA,4BAA4BA;YACpCA,SAASA,EAAEA,uBAAuBA;SACnCA,CAACA;oBAYDA;IAADA,kBAACA;AAADA,CAACA,AAhBD,IAgBC;AAXY,mBAAW,cAWvB,CAAA"} \ No newline at end of file +{"version":3,"file":"geolocation.js","sourceRoot":"","sources":["../../src/plugins/geolocation.ts"],"names":["Geolocation","Geolocation.constructor","Geolocation.getCurrentPosition","Geolocation.watchPosition"],"mappings":";;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAOzC;;;;;;;;;;;;;;;;GAgBG;AACH;IAAAA;IAgBAC,CAACA;IATQD,8BAAkBA,GADzBA,UAC0BA,OAAWA,IAAEE,CAACA;;IAQjCF,yBAAaA,GALpBA,UAKqBA,OAAWA,IAAEG,CAACA;;IATnCH;QAACA,gBAAOA,EAAEA;OACHA,iCAAkBA,QAAeA;IAGxCA;QAACA,gBAAOA,CAACA;YACPA,aAAaA,EAAEA,SAASA;YACxBA,UAAUA,EAAEA,IAAIA;YAChBA,aAAaA,EAAEA,YAAYA;SAC5BA,CAACA;OACKA,4BAAaA,QAAeA;IAfrCA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,aAAaA;YACnBA,MAAMA,EAAEA,4BAA4BA;YACpCA,SAASA,EAAEA,uBAAuBA;SACnCA,CAACA;oBAYDA;IAADA,kBAACA;AAADA,CAACA,AAhBD,IAgBC;AAXY,mBAAW,cAWvB,CAAA"} \ No newline at end of file diff --git a/src/plugins/geolocation.ts b/src/plugins/geolocation.ts index 96845905a..4513857f8 100644 --- a/src/plugins/geolocation.ts +++ b/src/plugins/geolocation.ts @@ -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){}; }