Commit 94b825ab authored by Mark Otto's avatar Mark Otto

Merge branch '2.0-wip' of github.com:twitter/bootstrap into 2.0-wip

parents cfc23530 64c86235
...@@ -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 () {
......
...@@ -48,4 +48,15 @@ $(function () { ...@@ -48,4 +48,15 @@ $(function () {
ok(!$(".twipsy").length, 'twipsy removed') ok(!$(".twipsy").length, 'twipsy removed')
}) })
test("should respect custom classes", function () {
var twipsy = $('<a href="#" rel="twipsy" title="Another twipsy"></a>')
.appendTo('#qunit-fixture')
.twipsy({ template: '<div class="twipsy some-class"><div class="twipsy-arrow"/><div class="twipsy-inner"/></div>'})
.twipsy('show')
ok($('.twipsy').hasClass('some-class'), 'custom class is present')
twipsy.twipsy('hide')
ok(!$(".twipsy").length, 'twipsy removed')
})
}) })
\ No newline at end of file
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