twitter/bootstrap — pull request #6869 by kasperp (2013-02-09 18:53:52+00:00)
Title: Applies data attribute options to selector delegated tooltips

This commit fixes #6832, by applying options provided in data attributes before showing and hiding tooltips with a selector.

In the doc there is something like this:

```html

Tooltip on top

Tooltip on right

Tooltip on bottom

Tooltip on left

```

The tooltip plugin are then attached like so:

```javascript
$('.tooltip-demo').tooltip({
selector: "a[data-toggle=tooltip]"
})
```

Without applying the data attribute options, only the options in given to to the `tooltip( .. )` are used and all the delegated tooltips use the default placement (as well as other defaults).

I don't know if this is something you want to support, alternatively docs could be updated to attach the tooltips differently.