Correctly check for undefined in getScroll. Fixes #219
Merge pull request #245 from dcjones/dev

Correctly check for undefined in getScroll. Fixes #219