From: Nicklas Ansman Giertz Date: Fri, 6 Jan 2012 10:16:29 +0000 (+0100) Subject: Make twipsy respect custom classes when using a custom template X-Git-Tag: v2.0.0~6^2~360^2^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f07bcafd397dd39c5490e192ab7b52c49acd3d9b;p=thirdparty%2Fbootstrap.git 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. --- 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 () {