twitter/bootstrap — pull request #1821 by kmiyashiro (2012-02-08 08:25:09+00:00)
Title: Don't show tooltip/popover if leave event occurs before delay expires

Setting the delay to 1 second on a tooltip or popover means "don't show this tip unless the 'enter' event persists for 1 second straight". Currently, it just means whenever an enter event occurs, show the tip 1 second later no matter what. This can cause a lot of tooltip flashing that make no sense.

This change clears the setTimeout to show the tip if the hide event occurs before the delayed tip has shown.