You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by js...@apache.org on 2014/11/12 18:47:50 UTC

[3/3] cordova-plugin-statusbar git commit: CB-7977 Mention deviceready in plugin docs

CB-7977 Mention deviceready in plugin docs


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/commit/8685564e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/tree/8685564e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/diff/8685564e

Branch: refs/heads/master
Commit: 8685564ec1d5e520eefedecb6a76759954cdb811
Parents: 1e9d588
Author: Josh Soref <js...@blackberry.com>
Authored: Thu Nov 6 17:16:06 2014 -0500
Committer: Josh Soref <js...@blackberry.com>
Committed: Thu Nov 6 17:34:03 2014 -0500

----------------------------------------------------------------------
 doc/index.md | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/blob/8685564e/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index b766a77..9fb9504 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -61,6 +61,14 @@ Add/edit these two attributes if not present. Set **"Status bar is initially hid
 
 Methods
 -------
+This plugin defines global `StatusBar` object.
+
+Although in the global scope, it is not available until after the `deviceready` event.
+
+    document.addEventListener("deviceready", onDeviceReady, false);
+    function onDeviceReady() {
+        console.log(StatusBar);
+    }
 
 - StatusBar.overlaysWebView
 - StatusBar.styleDefault


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org