From c5ada0f09f0db24043e25cd9278f91ea8e05ad2e Mon Sep 17 00:00:00 2001 From: macdonst Date: Tue, 31 Jan 2012 15:02:06 -0500 Subject: [PATCH] Deprecating navigator.app.overrideBackbutton Everyone should be using: document.addEventListener("backbutton", yourCallbackFunction, false); --- framework/assets/js/app.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/framework/assets/js/app.js b/framework/assets/js/app.js index 8734cefd..4eea08ef 100755 --- a/framework/assets/js/app.js +++ b/framework/assets/js/app.js @@ -75,19 +75,6 @@ App.prototype.backHistory = function() { PhoneGap.exec(null, null, "App", "backHistory", []); }; -/** - * Override the default behavior of the Android back button. - * If overridden, when the back button is pressed, the "backKeyDown" JavaScript event will be fired. - * - * Note: The user should not have to call this method. Instead, when the user - * registers for the "backbutton" event, this is automatically done. - * - * @param override T=override, F=cancel override - */ -App.prototype.overrideBackbutton = function(override) { - PhoneGap.exec(null, null, "App", "overrideBackbutton", [override]); -}; - /** * Exit and terminate the application. */