mirror of https://github.com/twbs/bootstrap.git
When a DOM node is passed to an HTML tooltip, the `title` node is only moved if it is not already in the tooltip. Otherwise, `empty()` is used instead of `detach()` before appending the `title` to avoid memory leaks. If a DOM node is passed to a plain text tooltip, its text is copied via jQuery `.text()`. Replaces `.detach()` with `.empty()`, as `.detach()` is almost never useful but instead leaks memory. The difference between `empty` and `detach` is that the latter keeps all the attached jQuery events/data. However, since we do not return the previous children, the user would have to keep these themselves, thus they can `detach()` if necessary. This is a port of https://github.com/twbs/bootstrap/pull/14552 to v4. |
||
---|---|---|
.. | ||
alerts.md | ||
breadcrumb.md | ||
button-dropdown.md | ||
button-group.md | ||
buttons.md | ||
card.md | ||
carousel.md | ||
collapse.md | ||
dropdowns.md | ||
forms.md | ||
input-group.md | ||
jumbotron.md | ||
label.md | ||
list-group.md | ||
modal.md | ||
navbar.md | ||
navs.md | ||
pagination.md | ||
popovers.md | ||
progress.md | ||
scrollspy.md | ||
tooltips.md | ||
utilities.md |