Browse files

Bugfix to make the plugin working with on Internet-Exolorer 7 + Inter…

…net Explorer 8
  • Loading branch information...
1 parent ccd128a commit 5dbff5b81125e4153c19062fdff7defa474deaea @stijink stijink committed Nov 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.endless-scroll.js
View
2 js/jquery.endless-scroll.js
@@ -81,7 +81,7 @@
return; // Scroll will still get called, but nothing will happen
}
- if (this == document) {
+ if (this == document || this == window) {
var is_scrollable = $(document).height() - $(window).height() <= $(window).scrollTop() + options.bottomPixels;
} else {
// calculates the actual height of the scrolling container

0 comments on commit 5dbff5b

Please sign in to comment.