You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2012/03/01 20:35:19 UTC

git commit: Fixing crash when taking a picture with a destination type of DATA_URL

Updated Branches:
  refs/heads/master 534979e58 -> 2d93bb435


Fixing crash when taking a picture with a destination type of DATA_URL


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

Branch: refs/heads/master
Commit: 2d93bb435249493fafc709bedc9c7aab47daf0ee
Parents: 534979e
Author: macdonst <si...@gmail.com>
Authored: Thu Mar 1 14:35:08 2012 -0500
Committer: macdonst <si...@gmail.com>
Committed: Thu Mar 1 14:35:08 2012 -0500

----------------------------------------------------------------------
 lib/plugin/Camera.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/2d93bb43/lib/plugin/Camera.js
----------------------------------------------------------------------
diff --git a/lib/plugin/Camera.js b/lib/plugin/Camera.js
index 93e90fb..816ae9d 100644
--- a/lib/plugin/Camera.js
+++ b/lib/plugin/Camera.js
@@ -36,7 +36,7 @@ module.exports = {
         }
 
         var destinationType = Camera.DestinationType.FILE_URL;
-        if (options.destinationType) {
+        if (typeof options.destinationType == "number") {
             destinationType = options.destinationType;
         }