forked from Github/cordova-plugin-run-in-background
Fix wrong scope in overrideBackButton
This commit is contained in:
@@ -165,7 +165,9 @@ exports.moveToForeground = function () {
|
|||||||
* @return [ Void ]
|
* @return [ Void ]
|
||||||
*/
|
*/
|
||||||
exports.overrideBackButton = function () {
|
exports.overrideBackButton = function () {
|
||||||
document.addEventListener('backbutton', this.moveToBackground, false);
|
document.addEventListener('backbutton', function() {
|
||||||
|
exports.moveToBackground();
|
||||||
|
}, false);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user