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:37:42 UTC

cordova-plugin-console git commit: CB-7977 Mention deviceready in plugin docs

Repository: cordova-plugin-console
Updated Branches:
  refs/heads/master b904be5b7 -> c0aa66c98


CB-7977 Mention deviceready in plugin docs


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

Branch: refs/heads/master
Commit: c0aa66c98af3920dc1f9a1f2ec000372d4e48ec1
Parents: b904be5
Author: Josh Soref <js...@blackberry.com>
Authored: Thu Nov 6 17:08:13 2014 -0500
Committer: Josh Soref <js...@blackberry.com>
Committed: Thu Nov 6 17:08:13 2014 -0500

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


http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/blob/c0aa66c9/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index 437846f..ea801f7 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -24,6 +24,16 @@ It adds additional function for iOS, Ubuntu, Windows Phone 8, and Windows 8. If
 you are happy with how console.log() works for you, then you probably
 don't need this plugin.
 
+This plugin defines a global `console` object.
+
+Although the object is in the global scope, features provided by this plugin
+are not available until after the `deviceready` event.
+
+    document.addEventListener("deviceready", onDeviceReady, false);
+    function onDeviceReady() {
+        console.log("console.log works well");
+    }
+
 ## Installation
 
     cordova plugin add org.apache.cordova.console


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