diff --git a/app/assets/javascripts/jquery.infinite-pages.js.coffee b/app/assets/javascripts/jquery.infinite-pages.js.coffee index af8b7ca..a0f316d 100644 --- a/app/assets/javascripts/jquery.infinite-pages.js.coffee +++ b/app/assets/javascripts/jquery.infinite-pages.js.coffee @@ -147,6 +147,8 @@ Released under the MIT License # Have we waited enough time since the last check? shouldCheck = -> +new Date > lastCheckAt + scrollDelay + console.log "Unbinding..." + @$context.unbind('scroll') @$context.scroll -> scrollHandler() if shouldCheck() # Call check once every scrollDelay ms if scrollTimeout