Add destroyTooltip()

This commit is contained in:
Ben Ogle
2013-11-26 15:46:01 -08:00
parent f84635766c
commit f395905d4e

View File

@@ -82,6 +82,10 @@ jQuery.fn.hideTooltip = ->
tip.leave(currentTarget: this)
tip.hide()
jQuery.fn.destroyTooltip = ->
@hideTooltip()
@tooltip('destroy')
jQuery.fn.setTooltip.getKeystroke = getKeystroke
jQuery.fn.setTooltip.replaceModifiers = replaceModifiers