jquery-ui/ui/widgets
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
..
accordion.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
autocomplete.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
button.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
checkboxradio.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
controlgroup.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
datepicker.js Datepicker: Get selectedDay from data-date instead of element contents 2021-07-12 09:41:41 +02:00
dialog.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
draggable.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
droppable.js Docs: Update removal comments to mention 1.14, not 1.13 2021-08-26 13:36:06 +02:00
menu.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
mouse.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
progressbar.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
resizable.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
selectable.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
selectmenu.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
slider.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
sortable.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
spinner.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
tabs.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
tooltip.js Tooltip: Don't crash on empty content 2021-11-08 11:53:45 +01:00