jquery-ui/tests
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
..
images All: Optimize png images losslessly using zopflipng 2016-06-06 11:26:06 -04:00
lib Tests: Take development jQuery versions from releases.jquery.com 2021-09-29 19:07:43 +02:00
unit Tooltip: Don't crash on empty content 2021-11-08 11:53:45 +01:00
visual Build: Update to the latest version of Grunt & many other packages 2020-10-14 23:55:35 +02:00
.eslintrc.json Build: Migrate from JSHint & JSCS to ESLint 2021-06-07 00:58:12 +02:00
index.css Theme: Change default widget font-size to 1em 2014-10-24 07:23:31 -07:00
index.html Tests: Load the TestSwarm listener via HTTPS 2021-09-29 17:22:17 +02:00
index.js Tests: Style updates 2015-08-21 08:06:24 -04:00