dobarkod / cookie-banner

JavaScript based cookie-info banner for complying with EU cookie law
MIT License
425 stars 85 forks source link

Fix the (somewhat specific/rare) case of an exception being thrown when ... #21

Closed zytzagoo closed 9 years ago

zytzagoo commented 9 years ago

...trying to close the banner by using a more robust approach for referencing the nodes that are removed.

Exceptions occur when our cookiebanner div (and/or mask) is moved within the DOM (for whatever reason) between being injected and being closed/removed.

Legit reasons include certain jQuery plugins for mobile navigation or similar...

senko commented 9 years ago

Thanks!