twitter/bootstrap — pull request #3471 by philipmat (2012-05-14 02:27:26+00:00)
Title: Call setContent after adding the tooltip to the page.

As it is right now, if cloning existing page elements is performed in setContent, their event handlers get blown away when the $tip is attached to the document.

This patch would allow other components to extend setContent and clone ($.clone(true)) nodes into .tooltip-inner, and thus clone events as well.

In combination with trigger: 'manual' this would allow one to create pop-up menus containing buttons (and make them work with frameworks such as Backbone and KnockOut.js).