abecks / meteor-infinite-scroll-deprecated

Enables infinite scrolling at the template level
31 stars 17 forks source link

TypeError: Template.instance().infiniteScroll.getLimit is not a function #20

Open maxfi opened 7 years ago

maxfi commented 7 years ago

In the README API section:

You can reactively access the current limit by using [templateInstance].infiniteScroll.getLimit() (e.g. Template.instance().infiniteScroll.getLimit())

However, it appears that the getLimit function is being attached directly to the template instance. So Template.instance().getLimit() works. Is this expected behaviour and a typo in the README?

Thanks for the great package!

gurjit03 commented 7 years ago

@maxfi did you find any solution to it ?

maxfi commented 7 years ago

@gurjit03 I haven't used the package in a while but as I recall I just ended up using Template.instance().getLimit() instead of Template.instance().infiniteScroll.getLimit().

chamithkanchana commented 7 years ago

Thanks, @maxfi. It works for me.