twbs/bootstrap — pull request #13702 by mikegreiling (2014-05-29 10:05:55+00:00)
Title: Minor Updates to Scrollspy.js

Minor refactoring...

* Make `this.offsets` and `this.targets` vanilla javascript arrays again
* Removes check for href attribute on the scrollable element – No one is going to use an `` tag to define a scrollable block
* Removes `this.$element` since it was merely a duplicate of `this.$scrollElement`
* Combine logic of multiple segments within the refresh method which depend on whether or not `$scrollElement` is equal to `window` for better speed and readability.