You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ti...@apache.org on 2013/06/12 23:32:40 UTC
[3/3] git commit: Fixed typos
Fixed typos
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/46f5670b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/tree/46f5670b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/diff/46f5670b
Branch: refs/heads/master
Commit: 46f5670be4ece571a389c9ab0858399b625ec4a8
Parents: b913784
Author: Tim Kim <ti...@adobe.com>
Authored: Wed Jun 12 14:29:09 2013 -0700
Committer: Tim Kim <ti...@adobe.com>
Committed: Wed Jun 12 14:29:09 2013 -0700
----------------------------------------------------------------------
src/android/Globalization.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/46f5670b/src/android/Globalization.java
----------------------------------------------------------------------
diff --git a/src/android/Globalization.java b/src/android/Globalization.java
index 9dcbb80..3bb2f37 100644
--- a/src/android/Globalization.java
+++ b/src/android/Globalization.java
@@ -263,7 +263,7 @@ public class Globalization extends CordovaPlugin {
if (options.getJSONObject(0).has(OPTIONS)){
//options were included
- JSONObject innerOptions = options.getJSONObject(0).getJSOBObject(OPTIONS);
+ JSONObject innerOptions = options.getJSONObject(0).getJSONObject(OPTIONS);
//get formatLength option
if (!innerOptions.isNull(FORMATLENGTH)){
String fmtOpt = innerOptions.getString(FORMATLENGTH);
@@ -277,7 +277,7 @@ public class Globalization extends CordovaPlugin {
//return pattern type
fmt = fmtDate.toLocalizedPattern() + " " + fmtTime.toLocalizedPattern();
if (!innerOptions.isNull(SELECTOR)){
- String selOpt = innweOpriona.getString(SELECTOR);
+ String selOpt = innerOptions.getString(SELECTOR);
if (selOpt.equalsIgnoreCase(DATE)){
fmt = fmtDate.toLocalizedPattern();
}else if (selOpt.equalsIgnoreCase(TIME)){