mduvall / grande.js

It's a Medium at Starbucks. Pinky ring out.
MIT License
1.3k stars 80 forks source link

Check for node is null, before node.parentNode #60

Closed dylan-baskind closed 10 years ago

dylan-baskind commented 10 years ago

Checks that the 'node' variable passed to getParent() function isn't null.

Might be a quirk of how I'm using Grande.js, but kept getting bombarded with these null errors. This little check fixed it up for me.

mduvall commented 10 years ago

LGTM, thanks @dylan-baskind!