Browse files

fix ":in-viewport"

  • Loading branch information...
1 parent 29ed5ab commit a595c0c1bc002a34a0bb9a9496330fb85cc86c36 @jpalardy jpalardy committed Aug 20, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 jquery.lazyload.js
View
6 jquery.lazyload.js
@@ -188,7 +188,7 @@
};
$.inviewport = function(element, settings) {
- return !$.rightofscreen(element, settings) && !$.leftofscreen(element, settings) &&
+ return !$.rightoffold(element, settings) && !$.leftofbegin(element, settings) &&
!$.belowthefold(element, settings) && !$.abovethetop(element, settings);
};
@@ -200,11 +200,11 @@
"above-the-top" : function(a) { return !$.belowthefold(a, {threshold : 0}); },
"right-of-screen": function(a) { return $.rightoffold(a, {threshold : 0}); },
"left-of-screen" : function(a) { return !$.rightoffold(a, {threshold : 0}); },
- "in-viewport" : function(a) { return !$.inviewport(a, {threshold : 0}); },
+ "in-viewport" : function(a) { return $.inviewport(a, {threshold : 0}); },
/* Maintain BC for couple of versions. */
"above-the-fold" : function(a) { return !$.belowthefold(a, {threshold : 0}); },
"right-of-fold" : function(a) { return $.rightoffold(a, {threshold : 0}); },
"left-of-fold" : function(a) { return !$.rightoffold(a, {threshold : 0}); }
});
-})(jQuery, window);
+})(jQuery, window);

0 comments on commit a595c0c

Please sign in to comment.