Okay, I've found out why this does not work. First of all, we have 2
the isReachable defined twice in phonegap.js. I merged them and added
a check no to pass the options as undefined.
Finally, I removed GetFunctionName() from the passed callback since it
always returned "alert" as function name. So now when I pass the
callback, it is not the function, it is the function name as string.
/**
*
* @param {Function} successCallback
* @param {Function} errorCallback
* @param {Object} options (isIpAddress:boolean)
*/
Network.prototype.isReachable = function(hostName, successCallback,
options) {
options = ((options == undefined) ? {} : options);
CabLifterTV.exec("Network.isReachable", hostName, successCallback,
options);
> > - Idézett szöveg megjelenítése -- Idézett szöveg elrejtése -