Merge pull request #963 from m-voloshin/destroy-tooltips

Completely remove attributes to destroy tooltip properly
This commit is contained in:
Дамян Минков 2016-09-30 09:28:26 -05:00 committed by GitHub
commit b3f0620f5b
1 changed files with 3 additions and 5 deletions

View File

@ -143,11 +143,9 @@ const TOOLTIP_POSITIONS = {
* @param element the element to remove the tooltip from
*/
removeTooltip: function (element) {
AJS.$(element).tooltip('destroy');
element.setAttribute('data-tooltip', '');
element.setAttribute('data-i18n','');
element.setAttribute('content','');
element.setAttribute('shortcut','');
element.removeAttribute('data-tooltip', '');
element.removeAttribute('data-i18n','');
element.removeAttribute('content','');
},
/**