diff options
Diffstat (limited to 'src/traversing.js')
-rw-r--r-- | src/traversing.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/traversing.js b/src/traversing.js index 027996e27..c815511a9 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -175,8 +175,11 @@ function isDisconnected( node ) { } function sibling( cur, dir ) { - while ( cur = cur[ dir ], cur.nodeType !== 1 ) {} + cur = cur[ dir ]; + while ( cur.nodeType !== 1 ) { + cur = cur[ dir ]; + } return cur; } |