From e96a77e5accbcb80348455d88ebdcc68a8361a20 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Wed, 5 Feb 2014 20:49:34 -0600 Subject: [PATCH] wrap exitApp in cordova ready --- js/utils/platform.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/utils/platform.js b/js/utils/platform.js index 17a227cae2..0bf477c897 100644 --- a/js/utils/platform.js +++ b/js/utils/platform.js @@ -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) {