Sha256: 4ba175ba703adbbf098c8106e7662ae9619a66303ac86757e4697e4dc2bf400d
Contents?: true
Size: 590 Bytes
Versions: 2
Compression:
Stored size: 590 Bytes
Contents
$(function () { module("bootstrap-affix") test("should be defined on jquery object", function () { ok($(document.body).affix, 'affix method is defined') }) test("should return element", function () { ok($(document.body).affix()[0] == document.body, 'document.body returned') }) test("should exit early if element is not visible", function () { var $affix = $('<div style="display: none"></div>').affix() $affix.data('affix').checkPosition() ok(!$affix.hasClass('affix'), 'affix class was not added') }) })
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cmstyle-0.0.13 | lib/assets/javascripts/bootstrap-affix.js |
cmstyle-0.0.12 | lib/assets/javascripts/bootstrap-affix.js |