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

Can not work with jQuery3.x #57

Closed
a761208 opened this issue Jul 29, 2017 · 1 comment
Closed

Can not work with jQuery3.x #57

a761208 opened this issue Jul 29, 2017 · 1 comment

Comments

@a761208
Copy link

a761208 commented Jul 29, 2017

Uncaught TypeError: Cannot read property 'push' of undefined
at jquery.pjax.js:981
at jquery.pjax.js:991

L981:$.event.props.push('state')

Fixed with these:

if ( $.event.props && $.inArray('state', $.event.props) < 0 ) {
  $.event.props.push('state');
} else if ( ! ('state' in $.Event.prototype) ) {
  $.event.addProp('state');
}
@cebe
Copy link
Member

cebe commented Jul 31, 2017

could you please make a pull request from your fix?

@a761208 a761208 mentioned this issue Aug 7, 2017
@samdark samdark closed this as completed in 367b5af Aug 7, 2017
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

No branches or pull requests

2 participants