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

jQuery 3 compatibility #7

Merged
merged 2 commits into from
Apr 23, 2018
Merged

jQuery 3 compatibility #7

merged 2 commits into from
Apr 23, 2018

Conversation

amotl
Copy link

@amotl amotl commented Apr 21, 2018

Dear Brian,

this little amendment makes jquery.viewport ready for jQuery 3.3.1, following the standardization of the custom pseudo object. Can we humbly ask you to push a 1.0.1 release to npmjs.com?

With kind regards,
Andreas.

@1337
Copy link
Owner

1337 commented Apr 23, 2018

Ok, will look into it :)

@@ -114,7 +114,7 @@
return true;
}

$.extend($.expr[':'], {
$.extend($.expr.pseudos, {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks jQuery 1.5.x, which is fine because the package doesn't say which version of jQuery it supports, but as an easy way to ignore it, would you mind changing this to $.expr.pseudos || $.expr[':']?

@amotl
Copy link
Author

amotl commented Apr 23, 2018

Dear Brian,

thanks for your quick response. I just added the requested amendment for supporting jQuery 1.5.x to this PR. Thanks a bunch for spotting this!

Cheers,
Andreas.

@1337
Copy link
Owner

1337 commented Apr 23, 2018

Thank you @amotl :)

@1337 1337 merged commit c9e5752 into 1337:master Apr 23, 2018
@amotl
Copy link
Author

amotl commented Apr 23, 2018

Thank you very much for the handling of this little update and for pushing it out to the npm.js package repository so quickly!

For all others finding this, the package is located at https://www.npmjs.com/package/jquery.viewport.

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