Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions jquery.scrollintoview.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@
// when there's nothing to scroll, just call the "complete" function
$.isFunction(options.complete) && options.complete.call(scroller[0]);
}
} else if (el.length > 0) {
// when an object to scroll exists, but has no :scrollable around, also calling complete
$.isFunction(options.complete) && options.complete.call();
}

// return set back
Expand Down
2 changes: 1 addition & 1 deletion jquery.scrollintoview.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.