You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/03/11 23:27:36 UTC
[4/5] git commit: Store updated value of isVisible when we call
show/hide. Use callback to set initial isVisible value for _ready
Store updated value of isVisible when we call show/hide. Use callback to set initial isVisible value for _ready
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugins/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugins/commit/35740b8b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugins/tree/35740b8b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugins/diff/35740b8b
Branch: refs/heads/master
Commit: 35740b8b4dfc9c7a68e88815e01aa64b527b21b3
Parents: ee959cb
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Tue Mar 11 15:22:54 2014 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Tue Mar 11 15:22:54 2014 -0700
----------------------------------------------------------------------
statusbar/www/statusbar.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/35740b8b/statusbar/www/statusbar.js
----------------------------------------------------------------------
diff --git a/statusbar/www/statusbar.js b/statusbar/www/statusbar.js
index 0dcf30e..dc456a9 100644
--- a/statusbar/www/statusbar.js
+++ b/statusbar/www/statusbar.js
@@ -41,7 +41,10 @@
};
// prime it
- exec(null, null, "StatusBar", "_ready", []);
+
+ exec(function (res) {
+ StatusBar.isVisible = res;
+ }, null, "StatusBar", "_ready", []);
var StatusBar = function () {
};
@@ -89,10 +92,12 @@
StatusBar.hide = function () {
exec(null, null, "StatusBar", "hide", []);
+ StatusBar.isVisible = false;
}
StatusBar.show = function () {
exec(null, null, "StatusBar", "show", []);
+ StatusBar.isVisible = true;
}
StatusBar.isVisible = true;