twbs--bootstrap/js/tests/unit
Gleb Mazovetskiy c7d8e7a077 Accept elements as the tooltip / popover content
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.
2015-08-31 01:06:13 +01:00
..
alert.js es6 alert :| 2015-05-07 12:57:31 -07:00
button.js button -> es6 2015-05-07 17:14:38 -07:00
carousel.js al tests passing, dist rebuilt, w/typechecker 2015-05-13 14:52:46 -07:00
collapse.js add collapse 2015-05-09 23:04:58 -07:00
dropdown.js Fix triggering of {shown,hidden}.bs.dropdown events so relatedTarget gets set properly 2015-07-27 00:58:51 -07:00
modal.js add getters for Version and Default where applicable 2015-05-10 19:45:38 -07:00
phantom.js js tests passing + eslint 2015-08-18 19:22:46 -07:00
popover.js Accept elements as the tooltip / popover content 2015-08-31 01:06:13 +01:00
scrollspy.js Merge branch 'v4' of github.com:twbs/derpstrap into v4 2015-08-18 21:23:53 -07:00
tab.js rewrite tab with new active shit 2015-08-18 22:03:34 -07:00
tooltip.js Accept elements as the tooltip / popover content 2015-08-31 01:06:13 +01:00