alicelieutier / smoothScroll

A teeny tiny smooth scroll script with ease-in-out effect and no jQuery.
MIT License
537 stars 127 forks source link

Handle non-existing IDs by checking for existence of node #27

Closed selbekk closed 8 years ago

selbekk commented 8 years ago

This patch fixes an issue where a link is linked to a hash that does not have a corresponding ID. Instead of assuming the ID exists, this patch adds a check for whether or not the ID exists.

Fixes #26.