Commit f07bcafd authored by Nicklas Ansman Giertz's avatar Nicklas Ansman Giertz

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.
parent 20add59d
......@@ -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 () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment