fredwu / jquery-endless-scroll

Endless/infinite scrolling/pagination.
http://fredwu.github.com/jquery-endless-scroll/
837 stars 176 forks source link

Request ceaseFire example #12

Closed JeroenVdb closed 12 years ago

JeroenVdb commented 12 years ago

Hi Fred

Is there a possibility to update the manual with an example for the ceaseFire option? I can't get it to work. It would also be nice if we could get the 'times fired' in the ceaseFire function.

This is what I have, it doens't work, also no error...

$(function() {
      $('ul#list').endlessScroll({
        fireOnce: false,
    fireDelay: false,
        insertAfter: "ul#list div:last",
    callback: function() {
        //ajax call
    },
        ceaseFire: function(i) { if(i==10) { return true; } }
      });
    });
fredwu commented 12 years ago

Fixed. :)