From a6c47cd3bfb5d441d906f18d85e39d10d90326ec Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Fri, 28 Feb 2014 23:31:13 -0600 Subject: [PATCH] fix(platform): Fix Platform.showStatusBar so it can be used multiple times, closes #702 --- js/utils/platform.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/utils/platform.js b/js/utils/platform.js index 49a85aa523..29102d1c76 100644 --- a/js/utils/platform.js +++ b/js/utils/platform.js @@ -64,7 +64,7 @@ if(this.isAndroid() && version < 4.4) { this.grade = (version < 4 ? 'c' : 'b'); - } + } } } }, @@ -160,10 +160,10 @@ showStatusBar: function(val) { // Only useful when run within cordova - this.showStatusBar = val; + this._showStatusBar = val; this.ready(function(){ // run this only when or if the platform (cordova) is ready - if(ionic.Platform.showStatusBar) { + if(ionic.Platform._showStatusBar) { // they do not want it to be full screen StatusBar.show(); document.body.classList.remove('status-bar-hide'); @@ -203,7 +203,7 @@ // setup listeners to know when the device is ready to go function onWindowLoad() { if(ionic.Platform.isCordova()) { - // the window and scripts are fully loaded, and a cordova/phonegap + // the window and scripts are fully loaded, and a cordova/phonegap // object exists then let's listen for the deviceready document.addEventListener("deviceready", onPlatformReady, false); } else {