Skip to content

Commit

Permalink
wrap exitApp in cordova ready
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Bradley committed Feb 6, 2014
1 parent aa93047 commit e96a77e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/utils/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e96a77e

Please sign in to comment.