aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-07-23 18:17:43 -0700
committerJacob Thornton <[email protected]>2012-07-23 18:17:43 -0700
commit614d52bd7f86591a0b0ab09e1c16ee888610d8a3 (patch)
treea08189ae049f62967f829d5acf47bcf77c24ce07
parent5247b15411a29f98832e38957f57a1e03e7065ae (diff)
downloadbootstrap-614d52bd7f86591a0b0ab09e1c16ee888610d8a3.tar.xz
bootstrap-614d52bd7f86591a0b0ab09e1c16ee888610d8a3.zip
delete this test for now - as affix is still heavily underdevelopment
-rw-r--r--js/bootstrap-affix.js2
-rw-r--r--js/tests/unit/bootstrap-affix.js6
2 files changed, 1 insertions, 7 deletions
diff --git a/js/bootstrap-affix.js b/js/bootstrap-affix.js
index a1cd10933..7563029b1 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 2d4419def..bc25df991 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 = $('<div></div>').appendTo('body').affix()
- $('body').trigger('scroll')
- ok($affix.hasClass('affix'), 'element has class affix')
- })
-
}) \ No newline at end of file