Created by: ricardopolo
Fixes #15359 (closed)
When using Tooltip.js it adds data-original-title
and title
to the DOM if they does not exist.
Calling
$(this).tooltip({ 'placement': 'bottom', 'title': 'Tooltip text'})
Gets a code like this
<span data-original-title="" title="">John</span>
After this PR you can call tooltip with an optional attribute for javascript only solutions (not using data html attributes). Calling
$(this).tooltip({ 'placement': 'bottom', 'title': 'Tooltip text', jsOnly: true })
Now does not change the DOM
<span>John</span>