jquery-ui/ui
Josep Sanz 85fba3f107
Tooltip: Don't crash on empty content
Commit 1f2011ece removed a `try-catch` around triggering the `remove` handlers
in the `jQuery.cleanData` override. The `try-catch` was meant for old IE but it was
also catching an error coming from the tooltip `remove` handler depending on
being able to find a relevant tooltip. The `_find` method returns `null`, though,
when the tooltip cotent is empty.

Instead of restoring the `try-catch`, handle the `null` case in the `remove` handler.

Fixes gh-1990
Closes gh-1994

Co-authored-by: Claas Augner <github@caugner.de>
Co-authored-by: Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
2021-11-08 11:53:45 +01:00
..
effects Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
i18n Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
vendor/jquery-color Build: Update jQuery Simulate, jQuery Migrate & jQuery Color 2020-05-16 08:26:48 +02:00
widgets Tooltip: Don't crash on empty content 2021-11-08 11:53:45 +01:00
.eslintrc.json Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
core.js Docs: Update removal comments to mention 1.14, not 1.13 2021-08-26 13:36:06 +02:00
data.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
disable-selection.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
effect.js Effect: Define the jQuery variable before jQuery Color gets imported 2021-09-03 14:42:30 +02:00
focusable.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
form-reset-mixin.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
form.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
ie.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
jquery-patch.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
jquery-var-for-color.js Effect: Define the jQuery variable before jQuery Color gets imported 2021-09-03 14:42:30 +02:00
keycode.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
labels.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
plugin.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
position.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
safe-active-element.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
safe-blur.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
scroll-parent.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
tabbable.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
unique-id.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
version.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
widget.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00