in js/index.js [578:598]
scrollToItem(...args) {
if (!this.$topFiller || !this.$bottomFiller) {
throw new Error('Cannot scroll before the view is rendered');
}
let index = 0;
let position = 'default';
let callback = _.noop;
if (args.length >= 3) {
[index, position, callback] = args;
} else if (args.length === 2) {
if (_.isFunction(args[1])) {
[index, callback] = args;
} else {
[index, position] = args;
}
} else if (args.length === 1) {
index = args[0];
}
this._scrollToItem(index, position, callback);
}