• Gleb Mazovetskiy's avatar
    Accept elements as the tooltip / popover content · c7d8e7a0
    Gleb Mazovetskiy authored
    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.
    c7d8e7a0
Name
Last commit
Last update
dist Loading commit data...
docs Loading commit data...
grunt Loading commit data...
js Loading commit data...
scss Loading commit data...
test-infra Loading commit data...
.editorconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CNAME Loading commit data...
CONTRIBUTING.md Loading commit data...
Gemfile Loading commit data...
Gemfile.lock Loading commit data...
Gruntfile.js Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
_config.yml Loading commit data...
bower.json Loading commit data...
composer.json Loading commit data...
package.js Loading commit data...
package.json Loading commit data...
sache.json Loading commit data...