Adds utility method to remove tooltips.
This commit is contained in:
parent
e7cbacf9a2
commit
df3b7e2dbc
|
@ -113,6 +113,15 @@ import KeyboardShortcut from '../../keyboardshortcut/keyboardshortcut';
|
|||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* Removes the tooltip to the given element.
|
||||
*
|
||||
* @param element the element to remove the tooltip from
|
||||
*/
|
||||
removeTooltip: function (element) {
|
||||
AJS.$(element).tooltip('destroy');
|
||||
},
|
||||
|
||||
/**
|
||||
* Internal util function for generating tooltip title.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue