You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/01/29 20:07:52 UTC

[2/37] js commit: CB-2165: The saveToPhotoAlbum option for Camera.getPicture does not work with Cordova 2.2/Android

CB-2165: The saveToPhotoAlbum option for Camera.getPicture does not work with Cordova 2.2/Android


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

Branch: refs/heads/symbolmapping
Commit: bded37ff86f9acd5951d2d8fe6288844611ee05c
Parents: d95a1b2
Author: Simon MacDonald <si...@gmail.com>
Authored: Thu Jan 17 22:40:13 2013 -0500
Committer: Simon MacDonald <si...@gmail.com>
Committed: Thu Jan 17 22:40:13 2013 -0500

----------------------------------------------------------------------
 lib/common/argscheck.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/bded37ff/lib/common/argscheck.js
----------------------------------------------------------------------
diff --git a/lib/common/argscheck.js b/lib/common/argscheck.js
index 524b435..dfe401c 100644
--- a/lib/common/argscheck.js
+++ b/lib/common/argscheck.js
@@ -72,6 +72,7 @@ function checkArgs(spec, functionName, args, opt_callee) {
 }
 
 function getValue(value, defaultValue) {
+    if (value !== undefined && value === "true") { value = true; }
     return value === undefined ? defaultValue : value;
 }