]> source.dussan.org Git - jquery.git/commitdiff
Fixes lint issues.
authorRick Waldron <waldron.rick@gmail.com>
Mon, 7 May 2012 20:45:22 +0000 (16:45 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Mon, 7 May 2012 20:45:22 +0000 (16:45 -0400)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
src/traversing.js

index 027996e27a36d3607a03dfc7d8ae458e5fb4b9e2..c815511a9c23d36eeaed899602831ba0525fa7c6 100644 (file)
@@ -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;
 }