thybag / PJAX-Standalone

A standalone implementation of Pushstate AJAX, for non-jquery webpages.
203 stars 42 forks source link

Fire events after adding html to the DOM. #1

Closed ro-ka closed 12 years ago

ro-ka commented 12 years ago

I moved the trigger for the complete / error / success events to the end.

Reason: I want to check the DOM after adding the html for some element. So now the complete event is fired when the pjax call is really complete.

Btw: Thanks for the script! Started one standalone by myself but then found yours. :)

thybag commented 12 years ago

Hello,

The change makes a lot of sense (no idea why I didn't have it that way around to start with), so I've merged it in.

Thanks for sending in the fix, Carl

ro-ka commented 12 years ago

That was fast, thanks!