twitter/bootstrap — pull request #5233 by jabbaugh (2012-09-21 19:29:29+00:00)
Title: Tooltip works on D3 rect tags

The bootstrap-tooltip.js was not working when applied to a graph created
using the D3 library. On further inspection I discovered that the
getPosition method was returning width:undefined.

This patch adds a check on the this.$element[0].offsetWidth and
this.$element[0].offsetHeight to make sure they are defined. If they are
not then they default to 0;

Change-Id: I71af2b37b4bf171707712711f0ccc2ad7f8c289d