defunkt / jquery-pjax

pushState + ajax = pjax
https://pjax.herokuapp.com
MIT License
16.74k stars 1.97k forks source link

Event table: about signature of end-user event listener function #699

Open bscheshirwork opened 6 years ago

bscheshirwork commented 6 years ago

https://github.com/defunkt/jquery-pjax#events pjax:success |   | data, status, xhr, options | after replacing HTML content loaded from the server

So... This is part of args of functions. First argument alvays is JQuery event...

I think we can add some examples of all arguments, like this

$(document).on('pjax:success', function(event, data, status, xhr, options) {
console.log(event);
console.log(data);
console.log(status);
console.log(xhr);
console.log(options);
});