mirror of
https://github.com/jquery/jquery.git
synced 2026-02-07 01:44:58 -05:00
Fix #11969. Never a null moment when checking siblings.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user