Created by: mikegreiling
Minor refactoring...
- Make
this.offsets
andthis.targets
vanilla javascript arrays again - Removes check for href attribute on the scrollable element – No one is going to use an
<a>
tag to define a scrollable block - Removes
this.$element
since it was merely a duplicate ofthis.$scrollElement
- Combine logic of multiple segments within the refresh method which depend on whether or not
$scrollElement
is equal towindow
for better speed and readability.