Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/jpalardy/jquery_lazyload
Browse files Browse the repository at this point in the history
…into 1.8.1
  • Loading branch information
tuupola committed Sep 28, 2012
2 parents 5274901 + a595c0c commit 25338a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.lazyload.js
Expand Up @@ -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);
};

Expand All @@ -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}); },
Expand Down

0 comments on commit 25338a1

Please sign in to comment.