Skip to content

Commit

Permalink
Revert "Update for Cordova 1.5.0 (+?)"
Browse files Browse the repository at this point in the history
This reverts commit 21548f0.
  • Loading branch information
kerrishotts committed Jun 7, 2012
1 parent 21548f0 commit dd62a18
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
6 changes: 3 additions & 3 deletions WindowsPhone/ChildBrowser/ChildBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,21 @@ ChildBrowser.prototype.showWebPage = function(loc,geolocationEnabled)

};

Cordova.exec(success,error,"ChildBrowserCommand","showWebPage", options);
PhoneGap.exec(success,error,"ChildBrowserCommand","showWebPage", options);
//setTimeout(this.close,5000);
};

// close the browser, will NOT result in close callback
ChildBrowser.prototype.close = function()
{
Cordova.exec(null,null,"ChildBrowserCommand","close");
PhoneGap.exec(null,null,"ChildBrowserCommand","close");
};

// Not Implemented
ChildBrowser.prototype.jsExec = function(jsString)
{
// Not Implemented!!
//Cordova.exec("ChildBrowserCommand.jsExec",jsString);
//PhoneGap.exec("ChildBrowserCommand.jsExec",jsString);
};

// Note: this plugin does NOT install itself, call this method some time after deviceready to install it
Expand Down
8 changes: 3 additions & 5 deletions WindowsPhone/ChildBrowser/ChildBrowserCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.Diagnostics;
using System.Runtime.Serialization;
using WP7CordovaClassLib.Cordova;
using WP7CordovaClassLib.Cordova.Commands;
using WP7CordovaClassLib.Cordova.JSON;
using System.Runtime.Serialization;
using WP7GapClassLib.PhoneGap.UI;
using Microsoft.Phone.Shell;

namespace WP7CordovaClassLib.Cordova.Commands
namespace WP7GapClassLib.PhoneGap.Commands
{
[DataContract]
public class BrowserOptions
Expand Down
2 changes: 1 addition & 1 deletion WindowsPhone/PGSocialShare/PGSocialShare.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using System.Runtime.Serialization;
using Microsoft.Phone.Tasks;

namespace WP7CordovaClassLib.Cordova.Commands
namespace WP7GapClassLib.PhoneGap.Commands
{

public class PGSocialShare : BaseCommand
Expand Down
6 changes: 3 additions & 3 deletions WindowsPhone/PGSocialShare/PGSocialShare.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
}
}

Cordova.addConstructor(function() {
PhoneGap.addConstructor(function() {

navigator.plugins.pgSocialShare =
{
shareStatus:function(msg)
{
var options = {"message":msg,"shareType":PGSocialShare.ShareType.status};
Cordova.exec(null,null,"PGSocialShare","share",options);
PhoneGap.exec(null,null,"PGSocialShare","share",options);
},

shareLink:function(title,url,msg)
Expand All @@ -31,7 +31,7 @@
"url":url,
"shareType":PGSocialShare.ShareType.link};

Cordova.exec(null,null,"PGSocialShare","share",options);
PhoneGap.exec(null,null,"PGSocialShare","share",options);
}
}

Expand Down

0 comments on commit dd62a18

Please sign in to comment.