Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(angular.element): do not break on cleanData() if _data() returns undefined #16642

Closed
wants to merge 1 commit into from

Conversation

gkalpak
Copy link
Member

@gkalpak gkalpak commented Jul 22, 2018

This shouldn't happen in supported jQuery versions (2+), but if someone uses the unsupported 1.x version the app will break. The change that causes this new behavior was introduced in b7d396b.

Even though jQuery 1.x is not supported, it is worth avoiding the unnecessary breakage (given how simple).

Fixes #16641.

…rns undefined

This shouldn't happen in supported jQuery versions (2+), but if someone
uses the unsupported 1.x version the app will break. The change that
causes this new behavior was introduced in b7d396b.

Even though jQuery 1.x is not supported, it is worth avoiding the
unnecessary breakage (given how simple).

Fixes angular#16641
@gkalpak gkalpak changed the title fix(cleanData): do not break if jQuery._data() returns undefined fix(angular.element): do not break on cleanData() if _data() returns undefined Jul 22, 2018
@gkalpak gkalpak force-pushed the fix-cleanData-when-no-data branch from 3f212ff to 69bba7e Compare July 22, 2018 19:23
@gkalpak gkalpak added this to the 1.7.x milestone Jul 22, 2018
@gkalpak gkalpak self-assigned this Jul 22, 2018
@gkalpak gkalpak requested a review from mgol July 22, 2018 19:24
Copy link
Member

@mgol mgol left a comment

Choose a reason for hiding this comment

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

LGTM. Travis is failing, is that legitimate?

@Narretz
Copy link
Contributor

Narretz commented Jul 23, 2018

The e2e tests are the usual disconnects and the unit test failure is a flakey Safari bootstrap test

gkalpak added a commit that referenced this pull request Jul 23, 2018
…rns undefined

This shouldn't happen in supported jQuery versions (2+), but if someone
uses the unsupported 1.x version the app will break. The change that
causes this new behavior was introduced in b7d396b.

Even though jQuery 1.x is not supported, it is worth avoiding the
unnecessary breakage (given how simple).

Fixes #16641

Closes #16642
@gkalpak gkalpak closed this in e500fb6 Jul 23, 2018
@gkalpak gkalpak deleted the fix-cleanData-when-no-data branch July 23, 2018 11:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants