cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [19/58] [abbrv] git commit: fixes deserializing parameter in FileTransfer
Date Thu, 01 Nov 2012 22:09:19 GMT
fixes deserializing parameter in FileTransfer


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

Branch: refs/heads/master
Commit: d777ef7a5957b6dff74ebaa6e6fbeb69521a7371
Parents: bc86ec7
Author: Ruslan Kokorev <ruslank@bsquare.com>
Authored: Fri Oct 26 17:18:00 2012 +0400
Committer: Ruslan Kokorev <ruslank@bsquare.com>
Committed: Fri Oct 26 17:18:00 2012 +0400

----------------------------------------------------------------------
 .../standalone/cordovalib/Commands/FileTransfer.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp8/blob/d777ef7a/templates/standalone/cordovalib/Commands/FileTransfer.cs
----------------------------------------------------------------------
diff --git a/templates/standalone/cordovalib/Commands/FileTransfer.cs b/templates/standalone/cordovalib/Commands/FileTransfer.cs
index 12e9263..e585895 100644
--- a/templates/standalone/cordovalib/Commands/FileTransfer.cs
+++ b/templates/standalone/cordovalib/Commands/FileTransfer.cs
@@ -251,7 +251,8 @@ namespace WPCordovaClassLib.Cordova.Commands
             {
                 try 
                 {
-                    uploadOptions = JSON.JsonHelper.Deserialize<UploadOptions[]>(options)[0];
+                    string[] args = JSON.JsonHelper.Deserialize<string[]>(options);
+                    uploadOptions = JSON.JsonHelper.Deserialize<UploadOptions>(args[0]);
                 }
                 catch (Exception)
                 {


Mime
View raw message