I have a function like this
function saveProfile(data, url, successFn) {
    $.ajax({
        dataType: 'json',
        data: data,
        url: url,
        type: 'post',
        success: function () {
            successFn();
        }
    });
}
is there any difference to passing the successFn directly like this...
function saveProfile(data, url, successFn) {
    $.ajax({
        dataType: 'json',
        data: data,
        url: url,
        type: 'post',
        success: successFn
    });
}