bootstrap/js/tests/unit
Caden Lovelace a1aa0f8afd Handle multiple zero-offset Scrollspy elements.
When the first two elements in a scrollspy content block have a document
offset of zero (i.e. they're hard against the top of the page),
Scrollspy would switch between them on every scroll event.

This could happen, for example, in a system of nested sections:

```
<section id="animals">
  <section id="dogs">
	Content
  </section>
</section>
```

This ocurred because Scrollspy's check to see if it's at the end of the
array of sections uses `!arr[index]`. This misses the case where
`arr[index]` does exist and is zero.

This commit explicitly checks the array bounds.
2015-03-01 23:55:39 +00:00
..
.jshintrc Tweak JSHint and JSCS checks. 2014-06-06 01:23:06 +03:00
affix.js Unit tests: Use new names of module hooks 2015-02-26 08:20:42 +01:00
alert.js Unit tests: Use new names of module hooks 2015-02-26 08:20:42 +01:00
button.js Unit tests: Use new names of module hooks 2015-02-26 08:20:42 +01:00
carousel.js Unit tests: Use new names of module hooks 2015-02-26 08:20:42 +01:00
collapse.js Unit tests: Use new names of module hooks 2015-02-26 08:20:42 +01:00
dropdown.js Unit tests: Use new names of module hooks 2015-02-26 08:20:42 +01:00
modal.js Unit tests: Use new names of module hooks 2015-02-26 08:20:42 +01:00
phantom.js QUnit.jsDump => QUnit.dump 2015-02-25 23:29:27 -08:00
popover.js Unit tests: Use new names of module hooks 2015-02-26 08:20:42 +01:00
scrollspy.js Handle multiple zero-offset Scrollspy elements. 2015-03-01 23:55:39 +00:00
tab.js Unit tests: Use new names of module hooks 2015-02-26 08:20:42 +01:00
tooltip.js Unit tests: Use new names of module hooks 2015-02-26 08:20:42 +01:00