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:45:27 UTC
cordova-plugin-globalization git commit: CB-7977 Mention deviceready
in plugin docs
Repository: cordova-plugin-globalization
Updated Branches:
refs/heads/master 72d5b2a3d -> 40ab77499
CB-7977 Mention deviceready in plugin docs
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/commit/40ab7749
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/tree/40ab7749
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/diff/40ab7749
Branch: refs/heads/master
Commit: 40ab77499c231734818aa18882c837b71e1411d7
Parents: 72d5b2a
Author: Josh Soref <js...@blackberry.com>
Authored: Thu Nov 6 17:24:11 2014 -0500
Committer: Josh Soref <js...@blackberry.com>
Committed: Thu Nov 6 17:24:11 2014 -0500
----------------------------------------------------------------------
doc/index.md | 9 +++++++++
1 file changed, 9 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/40ab7749/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index c588994..35878dd 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -29,6 +29,15 @@ displayed in English but dates, times, etc., are displayed as they are in France
Unfortunately, most mobile platforms currently do not make a distinction between
these settings.
+This plugin defines global `navigator.globalization` object.
+
+Although in the global scope, it is not available until after the `deviceready` event.
+
+ document.addEventListener("deviceready", onDeviceReady, false);
+ function onDeviceReady() {
+ console.log(navigator.globalization);
+ }
+
## Installation
cordova plugin add org.apache.cordova.globalization
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org