Allows a tooltip to be temporarily locked from being hidden by its associated hide event ('mouseout' or 'click').
My current use case is a tooltip appears when the trigger is clicked but shouldn't disappear until a button within the tooltip is clicked. On trigger, I lock() it and call show(). When the other button is clicked I unlock() it and hide() it.
Allows a tooltip to be temporarily locked from being hidden by its associated hide event ('mouseout' or 'click').
My current use case is a tooltip appears when the trigger is clicked but shouldn't disappear until a button within the tooltip is clicked. On trigger, I lock() it and call show(). When the other button is clicked I unlock() it and hide() it.