Commit cb5282ca authored by Chris Scott's avatar Chris Scott

Update docs re window.plugins.backgroundGeoLocation name-change

parent 58768c92
......@@ -8,7 +8,7 @@ Follows the [Cordova Plugin spec](https://github.com/apache/cordova-plugman/blob
This plugin leverages Cordova/PhoneGap's [require/define functionality used for plugins](http://simonmacdonald.blogspot.ca/2012/08/so-you-wanna-write-phonegap-200-android.html).
## Using the plugin ##
The plugin creates the object `window.plugins.backgroundGeoLocation` with the methods
The plugin creates the object `window.BackgroundGeolocation` with the methods
`configure(success, fail, option)`,
......
......@@ -134,7 +134,7 @@ var app = {
app.watchForegroundPosition();
},
configureBackgroundGeoLocation: function() {
var bgGeo = window.plugins.backgroundGeoLocation;
var bgGeo = window.BackgroundGeolocation;
app.onClickHome();
......@@ -281,7 +281,7 @@ var app = {
}
},
onClickChangePace: function(value) {
var bgGeo = window.plugins.backgroundGeoLocation,
var bgGeo = window.BackgroundGeolocation,
btnPace = app.btnPace;
btnPace.removeClass('btn-success');
......@@ -309,7 +309,7 @@ var app = {
app.path = undefined;
},
onClickToggleEnabled: function(value) {
var bgGeo = window.plugins.backgroundGeoLocation,
var bgGeo = window.BackgroundGeolocation,
btnEnabled = app.btnEnabled,
isEnabled = ENV.toggle('enabled');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment