LinkedInAttic / hopscotch

A framework to make it easy for developers to add product tours to their pages.
Apache License 2.0
4.2k stars 666 forks source link

check parentNode is not null - fixes #296 #361

Open drujensen opened 6 years ago

drujensen commented 6 years ago

This change checks that the parentNode is not null before trying to call removeChild on it. This fixes #296 where someone may call endTour but startTour was not called yet.

if (el && el.parentNode)

I also had to update the grunt-rollup npm package to the latest in order to build the project.

drujensen commented 6 years ago

Any update on this issue?