Deprecating navigator.app.overrideBackbutton

Everyone should be using:

    document.addEventListener("backbutton", yourCallbackFunction, false);
This commit is contained in:
macdonst 2012-01-31 15:02:06 -05:00
parent 44edcbb3cf
commit c5ada0f09f

View File

@ -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.
*/