Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom events to replace ajax callbacks #96

Merged
merged 5 commits into from
Feb 22, 2012
Merged

Add custom events to replace ajax callbacks #96

merged 5 commits into from
Feb 22, 2012

Conversation

josh
Copy link
Contributor

@josh josh commented Feb 21, 2012

Since ajax callbacks can't be persisted into the browser history, we should prefer custom events instead.

This adds events for pjax:beforeSend, pjax:complete, pjax:error and pjax:success.

Adds pjax:beforeSend, pjax:complete, pjax:error, and pjax:success
@josh
Copy link
Contributor Author

josh commented Feb 21, 2012

@defunkt Do these deprecation changes seem reasonable?

@defunkt
Copy link
Owner

defunkt commented Feb 21, 2012

Yeah, this looks good. Maybe console.warn if it exists?

josh added a commit that referenced this pull request Feb 22, 2012
Add custom events to replace ajax callbacks
@josh josh merged commit d2970fe into master Feb 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants