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

js commit: Fixed CB-506 - added navigator.camera.cleanup

Updated Branches:
  refs/heads/master 924c5dd4a -> 5f70310f4


Fixed CB-506 - added navigator.camera.cleanup


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/5f70310f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/5f70310f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/5f70310f

Branch: refs/heads/master
Commit: 5f70310f46ccd202d2307cd10a87c04143e0f1ab
Parents: 924c5dd
Author: shazron <sh...@gmail.com>
Authored: Wed Jun 6 16:50:22 2012 -0700
Committer: shazron <sh...@gmail.com>
Committed: Wed Jun 6 16:50:22 2012 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/5f70310f/lib/common/plugin/Camera.js
----------------------------------------------------------------------
diff --git a/lib/common/plugin/Camera.js b/lib/common/plugin/Camera.js
index fe48f63..af911b9 100644
--- a/lib/common/plugin/Camera.js
+++ b/lib/common/plugin/Camera.js
@@ -106,4 +106,8 @@ cameraExport.getPicture = function(successCallback, errorCallback, options) {
     exec(successCallback, errorCallback, "Camera", "takePicture", [quality, destinationType, sourceType, targetWidth, targetHeight, encodingType, mediaType, allowEdit, correctOrientation, saveToPhotoAlbum, popoverOptions]);
 };
 
+cameraExport.cleanup = function(successCallback, errorCallback) {
+    exec(successCallback, errorCallback, "Camera", "cleanup", []);
+}
+
 module.exports = cameraExport;
\ No newline at end of file