Adds utility method to remove tooltips.

This commit is contained in:
damencho 2016-09-21 16:35:03 -05:00
parent e7cbacf9a2
commit df3b7e2dbc
1 changed files with 9 additions and 0 deletions

View File

@ -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.
*