Skip to content

Commit f6aa343

Browse files
committed
Merge pull request #47 from avalax/master
IE8 / IE9: Fixed a null pointer exception
2 parents 94e278e + a037bce commit f6aa343

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

foresight.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,9 @@
553553
isParentVisible = function ( ele, parent ) {
554554
// test to see if this element's parent is currently visible in the DOM
555555
parent = ele.parentNode;
556+
if (parent == null) {
557+
return FALSE;
558+
}
556559
if ( parent.clientWidth ) {
557560
return TRUE;
558561
}

0 commit comments

Comments
 (0)