Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added 2 New callback function 'beforeSend' and 'afterContentLoad' and new option reTriggerUntil option
added two public function 'getdata' and 'getOptions' , and
load request is changed to ajax get method for better content manupulation.
beforeSend- is called before sending the ajax request. Useful for changing the 'nextHref' or append some parameter to 'nextHref'
afterContentLoad- is called after data is received, but data is not appended to the scrolling div. Useful for data manipulation or formatting the received data.
reTriggerUntil - it will restart the scrolling when next button is clicked on
getdata and getOptions public let you access the jscroll data and option.
Removed animate and load function for better data handing and animation
$e.animate({scrollTop: $inner.outerHeight()}, 0, function() {})
animate don't let us to run our custom animation code. Better approach is to use it in 'Callback' function
$inner.find('div.jscroll-added').last().load(data.nextHref, function(r, status) {});
.load is replaced with
$.get(data.nextHref, function(r, status) {});
for better content handing
Thanks
Kishore
Kishoreweblabs.com