Permalink
Browse files

Solved an issue with inner_wrap assigment

  • Loading branch information...
1 parent f398156 commit 1a0692b9686c11ccfac00d18651653ca9a1df3e3 @ccoloma ccoloma committed Oct 20, 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 1a0692b

Please sign in to comment.