Skip to content

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

Merged
merged 1 commit into from
Apr 20, 2020

Conversation

mgol
Copy link
Member

@mgol mgol commented Apr 13, 2020

Summary

Make the data object a regular object again.

The change in gh-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 gh-4665
Ref gh-4603

-1 byte

Checklist

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
@mgol mgol added this to the 3.5.1 milestone Apr 13, 2020
@mgol mgol self-assigned this Apr 13, 2020
@mgol mgol added Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. Needs review labels Apr 13, 2020
Copy link
Member

@timmywil timmywil left a comment

Choose a reason for hiding this comment

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

LGTM

@skerbis
Copy link

skerbis commented Apr 13, 2020

LGTM2

@NicolasCARPi
Copy link

Dear @mgol,

I can confirm that this fix addresses an issue I was having with data-toggle='collapse' with Bootstrap v4.4.0 and jQuery 3.5.0.

Hoping a fix can be released (relatively) quickly :)

Cheers,
~Nico

NicolasCARPi added a commit to elabftw/elabftw that referenced this pull request Apr 16, 2020
alee added a commit to comses/comses.net that referenced this pull request Apr 16, 2020
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
yaroslavmo pushed a commit to dreamfactorysoftware/df-admin-app that referenced this pull request Apr 20, 2020
- The issue refers to jquery 3.5.0
- After jquery/jquery#4666 is merged we can go back to using latest jquery
volodymyrpoli pushed a commit to dreamfactorysoftware/df-admin-app that referenced this pull request Apr 20, 2020
- The issue refers to jquery 3.5.0
- After jquery/jquery#4666 is merged we can go back to using latest jquery
@mgol mgol merged commit 65e9098 into jquery:3.x-stable Apr 20, 2020
@mgol mgol deleted the 3.x-data-object branch April 20, 2020 16:11
@mgol mgol removed Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. Needs review labels Apr 20, 2020
@AttitudeL
Copy link

@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.

@mgol
Copy link
Member Author

mgol commented Apr 20, 2020

@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.

fetus-hina added a commit to fetus-hina/stat.ink that referenced this pull request May 1, 2020
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 ではセキュリティフィックスが入っているので一応早めに上げたい)
hwelsters pushed a commit to hwelsters/comses.net that referenced this pull request May 10, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

6 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy