Created by: mikegreiling
Minor refactoring...
- Make
this.offsetsandthis.targetsvanilla 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.$elementsince it was merely a duplicate ofthis.$scrollElement - Combine logic of multiple segments within the refresh method which depend on whether or not
$scrollElementis equal towindowfor better speed and readability.