]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix affix-top unit test to properly clean up after itself
authorChris Rebert <code@rebertia.com>
Fri, 21 Nov 2014 07:26:37 +0000 (23:26 -0800)
committerChris Rebert <code@rebertia.com>
Fri, 21 Nov 2014 07:26:37 +0000 (23:26 -0800)
js/tests/unit/affix.js

index 2e82a7dbfb18cf88df6c7f578d3f59f9b16b4f91..3152d8d2e4e01c249443c6719cd4b480141b2c55 100644 (file)
@@ -86,6 +86,7 @@ $(function () {
       })
       .on('affixed-top.bs.affix', function () {
         ok($('#affixTopTarget').hasClass('affix-top'), 'affix-top class applied')
+        $('#padding-offset').remove()
         start()
       })