diff options
| author | Nicklas Ansman Giertz <[email protected]> | 2012-01-06 11:16:29 +0100 |
|---|---|---|
| committer | Nicklas Ansman Giertz <[email protected]> | 2012-01-06 11:16:29 +0100 |
| commit | f07bcafd397dd39c5490e192ab7b52c49acd3d9b (patch) | |
| tree | 0117d1fea8c1f6f138abed308d4697fa89c7e517 | |
| parent | 20add59de3f2b69aaa9c9b325dab20b13c75eaa1 (diff) | |
| download | bootstrap-f07bcafd397dd39c5490e192ab7b52c49acd3d9b.tar.xz bootstrap-f07bcafd397dd39c5490e192ab7b52c49acd3d9b.zip | |
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.
| -rw-r--r-- | js/bootstrap-twipsy.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/bootstrap-twipsy.js b/js/bootstrap-twipsy.js index a176f0908..1ce4ad85b 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 () { |
