cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [28/58] [abbrv] git commit: fixes #37 CordovaPlugins. SocialShare and LiveTiles don't work
Date Thu, 01 Nov 2012 22:09:19 GMT
fixes #37 CordovaPlugins. SocialShare and LiveTiles don't work


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

Branch: refs/heads/master
Commit: 89ad24244d35d7541458150e8e36be9e8098f497
Parents: 04c695e
Author: sgrebnov <sergei.grebnov@gmail.com>
Authored: Tue Oct 23 16:34:12 2012 +0400
Committer: sgrebnov <sergei.grebnov@gmail.com>
Committed: Tue Oct 23 16:34:12 2012 +0400

----------------------------------------------------------------------
 plugins/www/plugins/LiveTiles/LiveTiles.cs         |   10 +++++-----
 plugins/www/plugins/LiveTiles/liveTiles.js         |   10 +++++-----
 plugins/www/plugins/PGSocialShare/PGSocialShare.cs |    2 +-
 plugins/www/plugins/PGSocialShare/PGSocialShare.js |    4 ++--
 4 files changed, 13 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp8/blob/89ad2424/plugins/www/plugins/LiveTiles/LiveTiles.cs
----------------------------------------------------------------------
diff --git a/plugins/www/plugins/LiveTiles/LiveTiles.cs b/plugins/www/plugins/LiveTiles/LiveTiles.cs
index b5fdaf6..1450749 100644
--- a/plugins/www/plugins/LiveTiles/LiveTiles.cs
+++ b/plugins/www/plugins/LiveTiles/LiveTiles.cs
@@ -86,7 +86,7 @@ namespace Cordova.Extension.Commands
             LiveTilesOptions liveTileOptions;
             try
             {
-                liveTileOptions = JsonHelper.Deserialize<LiveTilesOptions[]>(options)[0];
+                liveTileOptions = JsonHelper.Deserialize<LiveTilesOptions>(options);
             }
             catch (Exception)
             {
@@ -123,7 +123,7 @@ namespace Cordova.Extension.Commands
             LiveTilesOptions liveTileOptions;
             try
             {
-                liveTileOptions = JsonHelper.Deserialize<LiveTilesOptions[]>(options)[0];
+                liveTileOptions = JsonHelper.Deserialize<LiveTilesOptions>(options);
             }
             catch (Exception)
             {
@@ -170,7 +170,7 @@ namespace Cordova.Extension.Commands
             LiveTilesOptions liveTileOptions;
             try
             {
-                liveTileOptions = JsonHelper.Deserialize<LiveTilesOptions[]>(options)[0];
+                liveTileOptions = JsonHelper.Deserialize<LiveTilesOptions>(options);
             }
             catch (Exception)
             {
@@ -213,7 +213,7 @@ namespace Cordova.Extension.Commands
             LiveTilesOptions liveTileOptions;
             try
             {
-                liveTileOptions = JsonHelper.Deserialize<LiveTilesOptions[]>(options)[0];
+                liveTileOptions = JsonHelper.Deserialize<LiveTilesOptions>(options);
             }
             catch (Exception)
             {
@@ -253,7 +253,7 @@ namespace Cordova.Extension.Commands
             LiveTilesOptions tileOptions;
             try
             {
-                tileOptions = JsonHelper.Deserialize<LiveTilesOptions[]>(options)[0];
+                tileOptions = JsonHelper.Deserialize<LiveTilesOptions>(options);
             }
             catch 
             {

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp8/blob/89ad2424/plugins/www/plugins/LiveTiles/liveTiles.js
----------------------------------------------------------------------
diff --git a/plugins/www/plugins/LiveTiles/liveTiles.js b/plugins/www/plugins/LiveTiles/liveTiles.js
index 4b748be..35bfea7 100644
--- a/plugins/www/plugins/LiveTiles/liveTiles.js
+++ b/plugins/www/plugins/LiveTiles/liveTiles.js
@@ -16,31 +16,31 @@
         navigator.plugins.liveTiles = {
             updateAppTile: function (successCallback, errorCallback, options) {
                 if(checkArgs(successCallback, errorCallback)) {
-                    cdv.exec(successCallback, errorCallback, "LiveTiles", "updateAppTile",
[options]);
+                    cdv.exec(successCallback, errorCallback, "LiveTiles", "updateAppTile",
options);
                 }
             },
 
             createSecondaryTile: function (successCallback, errorCallback, options) {
                 if(checkArgs(successCallback, errorCallback)) {
-                    cdv.exec(successCallback, errorCallback, "LiveTiles", "createSecondaryTile",
[options]);
+                    cdv.exec(successCallback, errorCallback, "LiveTiles", "createSecondaryTile",
options);
                 }
             },
 
             updateSecondaryTile: function (successCallback, errorCallback, options) {
                 if(checkArgs(successCallback, errorCallback)) {
-                    cdv.exec(successCallback, errorCallback, "LiveTiles", "updateSecondaryTile",
[options]);
+                    cdv.exec(successCallback, errorCallback, "LiveTiles", "updateSecondaryTile",
options);
                 }
             },
 
             deleteSecondaryTile: function (successCallback, errorCallback, options) {
                 if(checkArgs(successCallback, errorCallback)) {
-                    cdv.exec(successCallback, errorCallback, "LiveTiles", "deleteSecondaryTile",
[options]);
+                    cdv.exec(successCallback, errorCallback, "LiveTiles", "deleteSecondaryTile",
options);
                 }
             },
 
             createCycleTile: function (successCallback, errorCallback, options) {
                 if(checkArgs(successCallback, errorCallback)) {
-                    cdv.exec(successCallback, errorCallback, "LiveTiles", "createCycleTile",
[options]);
+                    cdv.exec(successCallback, errorCallback, "LiveTiles", "createCycleTile",
options);
                 }
             }
 

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp8/blob/89ad2424/plugins/www/plugins/PGSocialShare/PGSocialShare.cs
----------------------------------------------------------------------
diff --git a/plugins/www/plugins/PGSocialShare/PGSocialShare.cs b/plugins/www/plugins/PGSocialShare/PGSocialShare.cs
index 3a0a74c..f8d4524 100644
--- a/plugins/www/plugins/PGSocialShare/PGSocialShare.cs
+++ b/plugins/www/plugins/PGSocialShare/PGSocialShare.cs
@@ -32,7 +32,7 @@ namespace WPCordovaClassLib.Cordova.Commands
 
         public void share(string options)
         {
-            ShareOptions opts = JSON.JsonHelper.Deserialize<ShareOptions[]>(options)[0];
+            ShareOptions opts = JSON.JsonHelper.Deserialize<ShareOptions>(options);
             switch (opts.shareType)
             {
                 case ShareType.Status :

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp8/blob/89ad2424/plugins/www/plugins/PGSocialShare/PGSocialShare.js
----------------------------------------------------------------------
diff --git a/plugins/www/plugins/PGSocialShare/PGSocialShare.js b/plugins/www/plugins/PGSocialShare/PGSocialShare.js
index 1bcf6cf..e8aa48a 100644
--- a/plugins/www/plugins/PGSocialShare/PGSocialShare.js
+++ b/plugins/www/plugins/PGSocialShare/PGSocialShare.js
@@ -12,13 +12,13 @@
         shareStatus:function(msg)
         {
             var options = {"message":msg,"shareType":0}; // 0 == status
-            cdv.exec(null,null,"PGSocialShare","share",[options]);
+            cdv.exec(null,null,"PGSocialShare","share", options);
         },
 
         shareLink:function(title,url,msg)
         {
             var options = {"message":msg, "title":title, "url":url, "shareType":1}; // 1
== link
-            cdv.exec(null,null,"PGSocialShare","share",[options]);
+            cdv.exec(null,null,"PGSocialShare","share", options);
         }
     }
 


Mime
View raw message