jquery-ui/tests/unit/tooltip
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
..
all.html Tests: Switch to the new qunit-composite module 2015-04-07 09:03:36 -04:00
common-deprecated.js Tooltip: Style updates 2015-09-11 08:29:07 -04:00
common.js Tooltip: Style updates 2015-09-11 08:29:07 -04:00
core.js Tooltip: Don't crash on empty content 2021-11-08 11:53:45 +01:00
deprecated.html Tests: Fix AMD loading in IE8 2015-04-17 12:13:38 -04:00
deprecated.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
events.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
helper.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
methods.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
options.js Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
tooltip.html Tests: Fix AMD loading in IE8 2015-04-17 12:13:38 -04:00