Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

iscroll-infinite: Uncaught TypeError: Cannot read property 'call' of undefined #992

Closed
xueqingxiao opened this issue Nov 26, 2015 · 2 comments

Comments

@xueqingxiao
Copy link

this.options.dataset.call(this, 0, this.options.cacheSize); // here dataset is undefined

below is my config:

new IScroll('.m-scroll-wrapper', {
          mouseWheel: true,
          infiniteElements: '.m-scroller p',
          cacheSize: 1000
        });
@xueqingxiao
Copy link
Author

iscroll 5 infinite version

@tafelito
Copy link

tafelito commented Mar 8, 2016

idk if you solved your issue, in case u didn't, u have to set the dataset when setting up the iscroll instance

new IScroll('#wrapper', {
              mouseWheel: true,
              infiniteElements: '#scroller .row',
              // infiniteLimit: 100,
              dataset: requestData,
              dataFiller: updateContent,
              cacheSize: 100
            });

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants