Skip to content

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

Open
@bscheshirwork

Description

@bscheshirwork

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);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions