mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
fix(geolocation): call correct clearFunction
This commit is contained in:
Vendored
+2
-2
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user