Created by: glebm
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()
.