Skip to content
Browse files

Validated code against JSLint

  • Loading branch information...
1 parent 555fdab commit dcb6ed4bb110e885c9014f5ef6655fca180af22c @jturnbull jturnbull committed with zuk Nov 9, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.inview.js
View
4 jquery.inview.js
@@ -24,8 +24,8 @@
// Manually calculate offset rather than using jQuery's offset
// This works-around iOS < 4 on iPad giving incorrect value
// cf http://bugs.jquery.com/ticket/6446#comment:9
- var curtop = 0
- for (obj = debug; obj != null; obj = obj.offsetParent)
+ var curtop = 0;
+ for (var obj = debug; obj !== null; obj = obj.offsetParent)
{
curtop += obj.offsetTop;
}

0 comments on commit dcb6ed4

Please sign in to comment.
Something went wrong with that request. Please try again.