yiisoft / jquery-pjax

pushState + ajax = pjax
http://pjax.herokuapp.com
MIT License
144 stars 40 forks source link

Fixing of wrong events lifecycle in case when ajax request is not async #72

Closed iovzt closed 2 years ago

iovzt commented 2 years ago

Fix for case when we use container reloading with synchronous ajax request

$.pjax.reload({container: '#pjax-container', async: false});

and events fire in unexpected order:

pjax:beforeSend pjax:beforeReplace pjax:success pjax:complete pjax:end pjax:start pjax:send

samdark commented 2 years ago

Would you please add a line for CHANGELOG?

iovzt commented 2 years ago

Sure, have added. Thanks a lot!

samdark commented 2 years ago

👍