Notification + Camera
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/145ce323 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/145ce323 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/145ce323 Branch: refs/heads/master Commit: 145ce323643c3e07a0e3f8d0a8355d7cfaeb6656 Parents: 3d0790c Author: Jesse MacFadyen <purplecabb...@gmail.com> Authored: Mon Jul 16 18:17:59 2012 -0700 Committer: Jesse MacFadyen <purplecabb...@gmail.com> Committed: Mon Jul 16 18:17:59 2012 -0700 ---------------------------------------------------------------------- lib/wp7/exec.js | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/145ce323/lib/wp7/exec.js ---------------------------------------------------------------------- diff --git a/lib/wp7/exec.js b/lib/wp7/exec.js index 2446d53..f0af580 100644 --- a/lib/wp7/exec.js +++ b/lib/wp7/exec.js @@ -44,6 +44,12 @@ var NamedArgs = { release:["id"], setVolume:["id","volume"] }, + Capture:{ + getFormatData:["fullPath","type"] + } +}; + +/* Notification: { alert:["message","title","buttonLabel"], confirm:["message","title","buttonLabel"] @@ -52,10 +58,7 @@ var NamedArgs = { takePicture:["quality", "destinationType", "sourceType", "targetWidth", "targetHeight", "encodingType", "mediaType", "allowEdit", "correctOrientation", "saveToPhotoAlbum" ] }, - Capture:{ - getFormatData:["fullPath","type"] - } -}; +*/ /** * Execute a cordova command. It is up to the native side whether this action @@ -95,9 +98,9 @@ module.exports = function(success, fail, service, action, args) { args = newArgs; } - else if(args && args.length && args.length == 1) { - args = args[0]; - } + // else if(args && args.length && args.length == 1) { + // args = args[0]; + // } var command = service + "/" + action + "/" + callbackId + "/" + JSON.stringify(args); // pass it on to Notify