From df3b7e2dbc51e761800eb1da69f699cdadb9899d Mon Sep 17 00:00:00 2001 From: damencho Date: Wed, 21 Sep 2016 16:35:03 -0500 Subject: [PATCH] Adds utility method to remove tooltips. --- modules/UI/util/UIUtil.js | 9 +++++++++ 1 file changed, 9 insertions(+) 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. *