From f07bcafd397dd39c5490e192ab7b52c49acd3d9b Mon Sep 17 00:00:00 2001 From: Nicklas Ansman Giertz Date: Fri, 6 Jan 2012 11:16:29 +0100 Subject: [PATCH] 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. --- js/bootstrap-twipsy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/bootstrap-twipsy.js b/js/bootstrap-twipsy.js index a176f09088..1ce4ad85b6 100644 --- a/js/bootstrap-twipsy.js +++ b/js/bootstrap-twipsy.js @@ -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 () { -- 2.47.2