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:44:24 UTC

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

Repository: cordova-plugin-file
Updated Branches:
  refs/heads/master 0b5096eab -> f357d81d2


CB-7977 Mention deviceready in plugin docs


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

Branch: refs/heads/master
Commit: f357d81d20435f9b3ddc4032ff3a746d5cd4b929
Parents: 0b5096e
Author: Josh Soref <js...@blackberry.com>
Authored: Thu Nov 6 17:10:37 2014 -0500
Committer: Josh Soref <js...@blackberry.com>
Committed: Wed Nov 12 12:44:08 2014 -0500

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


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/f357d81d/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index 41e23a8..a464e4f 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -40,6 +40,15 @@ For usage, please refer to HTML5 Rocks' excellent [FileSystem article.](http://w
 For an overview of other storage options, refer to Cordova's
 [storage guide](http://cordova.apache.org/docs/en/edge/cordova_storage_storage.md.html).
 
+This plugin defines global `cordova.file` object.
+
+Although in the global scope, it is not available until after the `deviceready` event.
+
+    document.addEventListener("deviceready", onDeviceReady, false);
+    function onDeviceReady() {
+        console.log(cordova.file);
+    }
+
 ## Installation
 
     cordova plugin add org.apache.cordova.file


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