0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

Make twipsy respect custom classes when using a custom template

If you had a custom class to the root object twipsy would overwrite
that class ($tip[0].className = 'twipsy'), now this has been changed
so it removes only classes that twipsy adds.
This commit is contained in:
Nicklas Ansman Giertz 2012-01-06 11:16:29 +01:00
parent 20add59de3
commit f07bcafd39

View File

@ -155,7 +155,7 @@
, setContent: function () {
var $tip = this.tip()
$tip.find('.twipsy-inner').html(this.getTitle())
$tip[0].className = 'twipsy'
$tip.removeClass('fade in top bottom left right')
}
, hide: function () {