Merge branch 'CB-3932' of git://github.com/angelaf/cordova-android

This commit is contained in:
Joe Bowser 2013-06-19 16:03:18 -07:00
commit 3ace9348f6

View File

@ -805,7 +805,6 @@ public class CordovaWebView extends WebView {
public void handleDestroy()
{
// Send destroy event to JavaScript
// Since baseUrl is set in loadUrlIntoView, if user hit Back button before loadUrl was called, we'll get an NPE on baseUrl (CB-2458)
this.loadUrl("javascript:try{cordova.require('cordova/channel').onDestroy.fire();}catch(e){console.log('exception firing destroy event from native');};");
// Load blank page so that JavaScript onunload is called