I use a local boolean variable to check whether the Complete was already called. However this does not feel good. Example:
function
myFunc(fComplete, arg1) { var completeNotCalled=true; function fGuardedComplete(data, textMessage) { if(completeNotCalled){completeNotCalled=
false;f(data);
}
}
var url = BASEURL+ "?get=m&n=m&f=";url = url + arg1;
var options = { 'url': url,async:
false,complete: fGuardedComplete,
dataType:
"jsonp", "jsonp": "p"};
$.ajax(options);
}