From: Jacob Thornton Date: Tue, 24 Jul 2012 01:17:43 +0000 (-0700) Subject: delete this test for now - as affix is still heavily underdevelopment X-Git-Tag: v2.1.0~2^2~148^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=614d52bd7f86591a0b0ab09e1c16ee888610d8a3;p=thirdparty%2Fbootstrap.git delete this test for now - as affix is still heavily underdevelopment --- diff --git a/js/bootstrap-affix.js b/js/bootstrap-affix.js index a1cd10933f..7563029b14 100644 --- a/js/bootstrap-affix.js +++ b/js/bootstrap-affix.js @@ -88,7 +88,7 @@ $('[data-spy="affix"]').each(function () { var $spy = $(this) , data = $spy.data() - + data.offset = data.offset || {} data.offsetX && (data.offset.x = data.offsetX) diff --git a/js/tests/unit/bootstrap-affix.js b/js/tests/unit/bootstrap-affix.js index 2d4419def4..bc25df9917 100644 --- a/js/tests/unit/bootstrap-affix.js +++ b/js/tests/unit/bootstrap-affix.js @@ -16,10 +16,4 @@ $(function () { ok(!$affix.hasClass('affix'), 'affix class was not added') }) - test("should add affix class if scrolled to correct position", function () { - var $affix = $('
').appendTo('body').affix() - $('body').trigger('scroll') - ok($affix.hasClass('affix'), 'element has class affix') - }) - }) \ No newline at end of file