wrap exitApp in cordova ready

This commit is contained in:
Adam Bradley
2014-02-05 20:49:34 -06:00
parent aa93047a9e
commit e96a77e5ac

View File

@@ -108,7 +108,9 @@
},
exitApp: function() {
navigator.app && navigator.app.exitApp && navigator.app.exitApp();
this.ready(function(){
navigator.app && navigator.app.exitApp && navigator.app.exitApp();
});
},
showStatusBar: function(val) {