Skip to content

Commit a6c47cd

Browse files
author
Adam Bradley
committed
fix(platform): Fix Platform.showStatusBar so it can be used multiple times, closes #702
1 parent 0c5c675 commit a6c47cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

js/utils/platform.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
if(this.isAndroid() && version < 4.4) {
6666
this.grade = (version < 4 ? 'c' : 'b');
67-
}
67+
}
6868
}
6969
}
7070
},
@@ -160,10 +160,10 @@
160160

161161
showStatusBar: function(val) {
162162
// Only useful when run within cordova
163-
this.showStatusBar = val;
163+
this._showStatusBar = val;
164164
this.ready(function(){
165165
// run this only when or if the platform (cordova) is ready
166-
if(ionic.Platform.showStatusBar) {
166+
if(ionic.Platform._showStatusBar) {
167167
// they do not want it to be full screen
168168
StatusBar.show();
169169
document.body.classList.remove('status-bar-hide');
@@ -203,7 +203,7 @@
203203
// setup listeners to know when the device is ready to go
204204
function onWindowLoad() {
205205
if(ionic.Platform.isCordova()) {
206-
// the window and scripts are fully loaded, and a cordova/phonegap
206+
// the window and scripts are fully loaded, and a cordova/phonegap
207207
// object exists then let's listen for the deviceready
208208
document.addEventListener("deviceready", onPlatformReady, false);
209209
} else {

0 commit comments

Comments
 (0)