Fix #11969. Never a null moment when checking siblings.

This commit is contained in:
Dave Methvin
2012-06-26 17:08:49 -04:00
parent 53eb2305fb
commit cde4c326b8
2 changed files with 3 additions and 2 deletions

View File

@@ -158,7 +158,7 @@ function isDisconnected( node ) {
function sibling( cur, dir ) {
do {
cur = cur[ dir ];
} while ( cur.nodeType !== 1 );
} while ( cur && cur.nodeType !== 1 );
return cur;
}