Fix wrong scope in overrideBackButton

This commit is contained in:
Sebastián Katzer 2017-01-27 14:45:34 +01:00
parent 916a46b69b
commit 83f6cc9d1b

View File

@ -165,7 +165,9 @@ exports.moveToForeground = function () {
* @return [ Void ]
*/
exports.overrideBackButton = function () {
document.addEventListener('backbutton', this.moveToBackground, false);
document.addEventListener('backbutton', function() {
exports.moveToBackground();
}, false);
};
/**