-
Notifications
You must be signed in to change notification settings - Fork 20.6k
Data: Make the data object a regular object again #4666
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
Conversation
The change in jquerygh-4603 made the object returned by `elem.data()` a prototype-less object. That's a desired change to support keys colliding with Object.prototype properties but it's also a breaking change so it has to wait for jQuery 4.0.0. A 3.x-only test was added to avoid breaking it in the future on this branch. Fixes jquerygh-4665 Ref jquerygh-4603
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
LGTM2 |
Dear @mgol, I can confirm that this fix addresses an issue I was having with Hoping a fix can be released (relatively) quickly :) Cheers, |
jquery 3.5.0 has a regression with bootstrap collapse (among others) pinning to ~3.4.1 (to allow minor patch releases) until jquery/jquery#4666 is merged + released
- The issue refers to jquery 3.5.0 - After jquery/jquery#4666 is merged we can go back to using latest jquery
- The issue refers to jquery 3.5.0 - After jquery/jquery#4666 is merged we can go back to using latest jquery
@mgol Thanks for fixing this issue! BTW is there a plan to include this fix into the next release and is there an Estimated release date yet? Thanks. |
@AttitudeL The fix will be included in 3.5.1. We’ll try to get the release out soon. That mostly depends on our available time, though, so I cannot provide any specific date. |
jQuery 3.5.0 と Bootstrap 3 の組み合わせでは、次の問題により アコーディオンが動作しない: jquery/jquery#4665 この問題を修正する Pull Request は merge されたものの、 3.5.1 は現時点ではリリースされていない。 jquery/jquery#4666 この commit では jQuery 3.5.0 に当該パッチを当てることで、 3.5.1 を待たず jQuery のバージョンアップを行う。 (3.5.0 ではセキュリティフィックスが入っているので一応早めに上げたい)
jquery 3.5.0 has a regression with bootstrap collapse (among others) pinning to ~3.4.1 (to allow minor patch releases) until jquery/jquery#4666 is merged + released
Summary
Make the data object a regular object again.
The change in gh-4603 made the object returned by
elem.data()
a prototype-lessobject. That's a desired change to support keys colliding with Object.prototype
properties but it's also a breaking change so it has to wait for jQuery 4.0.0.
A 3.x-only test was added to avoid breaking it in the future on this branch.
Fixes gh-4665
Ref gh-4603
-1 byte
Checklist