Completely remove attributes to destroy tooltip properly

This commit is contained in:
Maxim Voloshin 2016-09-30 14:06:57 +03:00
parent e894b0db43
commit 2f92aa9645
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 * @param element the element to remove the tooltip from
*/ */
removeTooltip: function (element) { removeTooltip: function (element) {
AJS.$(element).tooltip('destroy'); element.removeAttribute('data-tooltip', '');
element.setAttribute('data-tooltip', ''); element.removeAttribute('data-i18n','');
element.setAttribute('data-i18n',''); element.removeAttribute('content','');
element.setAttribute('content','');
element.setAttribute('shortcut','');
}, },
/** /**