diff --git a/modules/UI/util/UIUtil.js b/modules/UI/util/UIUtil.js index 81e296f316..531a56068b 100644 --- a/modules/UI/util/UIUtil.js +++ b/modules/UI/util/UIUtil.js @@ -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. *