Created by: mattcheah
added feature as a response to https://github.com/twbs/bootstrap/issues/19415 in which people (myself included) wanted a way to add a class to a popover or group of popovers for easier styling.
I added a default class
key for config
and added the class to the $(tip) element if the class value was present.
So when you create a tooltip (or popover) the class you added in your options will be there, like so:
<a id="popover1" data-toggle="popover" title="popover 1" data-content="This is my content" data-class="fhqwhgads">Popover 1</a>
<a href="#" id="tooltip1" data-toggle="tooltip" title="Some tooltip text!">Tooltip 1</a>
$("#popover1").popover()
$("#tooltip1").tooltip({class:"fhqwhgads"})