Permalink
Browse files

Merge pull request #6 from ccoloma/master

Issue with inner_wrap and the first scroll event
  • Loading branch information...
2 parents f398156 + 1a0692b commit e3200744dc4391ec01774733332452894a3986af @fredwu fredwu committed Oct 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.endless-scroll.js
@@ -87,7 +87,7 @@
// calculates the actual height of the scrolling container
var inner_wrap = $(".endless_scroll_inner_wrap", this);
if (inner_wrap.length == 0) {
- $(this).wrapInner("<div class=\"endless_scroll_inner_wrap\" />");
+ inner_wrap = $(this).wrapInner("<div class=\"endless_scroll_inner_wrap\" />").find(".endless_scroll_inner_wrap");
}
var is_scrollable = inner_wrap.length > 0 &&
(inner_wrap.height() - $(this).height() <= $(this).scrollTop() + options.bottomPixels);

0 comments on commit e320074

Please sign in to comment.