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

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
Showing with 1 addition and 1 deletion
+1 -1
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
, setContent: function () { , setContent: function () {
var $tip = this.tip() var $tip = this.tip()
$tip.find('.twipsy-inner').html(this.getTitle()) $tip.find('.twipsy-inner').html(this.getTitle())
$tip[0].className = 'twipsy' $tip.removeClass('fade in top bottom left right')
} }
, hide: function () { , hide: function () {
......
Supports Markdown
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