Fix wrong scope in overrideBackButton
This commit is contained in:
parent
916a46b69b
commit
83f6cc9d1b
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user