Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of https://github.com/jpalardy/jquery_lazyload

…into 1.8.1
  • Loading branch information...
commit 25338a15002b2874dbd8257798ee078b787179a9 2 parents 5274901 + a595c0c
@tuupola authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.lazyload.js
View
4 jquery.lazyload.js
@@ -192,7 +192,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);
};
@@ -205,7 +205,7 @@
"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}); },
Please sign in to comment.
Something went wrong with that request. Please try again.