aboutsummaryrefslogtreecommitdiffstats
path: root/src/traversing.js
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2012-05-07 16:45:22 -0400
committerRick Waldron <waldron.rick@gmail.com>2012-05-07 16:45:22 -0400
commitb26c34a69ffed321a1e9b506b31224fcaf64b3b0 (patch)
tree43f4507e2904758eab51b3d92876f59673eb5009 /src/traversing.js
parentdf254d47e43e6e1652b20a3b338b26f634cd2b2a (diff)
downloadjquery-b26c34a69ffed321a1e9b506b31224fcaf64b3b0.tar.gz
jquery-b26c34a69ffed321a1e9b506b31224fcaf64b3b0.zip
Fixes lint issues.
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Diffstat (limited to 'src/traversing.js')
-rw-r--r--src/traversing.js5
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;
}