Rename PhoneGap.execAsync() to PhoneGap.exec() and change all JS files that use it.

This commit is contained in:
Bryce Curtis
2010-10-20 23:53:33 -05:00
parent 29549b835a
commit 6b7fc8119f
13 changed files with 65 additions and 94 deletions
+4 -4
View File
@@ -26,10 +26,10 @@ NetworkStatus.REACHABLE_VIA_WIFI_NETWORK = 2;
function Network() {
/**
* The last known Network status.
* { hostName: string, ipAddress: string,
remoteHostStatus: int(0/1/2), internetConnectionStatus: int(0/1/2), localWiFiConnectionStatus: int (0/2) }
* { hostName: string, ipAddress: string,
remoteHostStatus: int(0/1/2), internetConnectionStatus: int(0/1/2), localWiFiConnectionStatus: int (0/2) }
*/
this.lastReachability = null;
this.lastReachability = null;
};
/**
@@ -53,7 +53,7 @@ Network.prototype.isReachable = function(uri, callback, options) {
if (options && options.isIpAddress) {
isIpAddress = options.isIpAddress;
}
PhoneGap.execAsync(callback, null, "Network Status", "isReachable", [uri, isIpAddress]);
PhoneGap.exec(callback, null, "Network Status", "isReachable", [uri, isIpAddress]);
};
PhoneGap.addConstructor(function() {