meteor-infinite-scroll-deprecated icon indicating copy to clipboard operation
meteor-infinite-scroll-deprecated copied to clipboard

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

Open maxfi opened this issue 8 years ago • 3 comments

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!

maxfi avatar Mar 09 '17 09:03 maxfi

@maxfi did you find any solution to it ?

gurjit03 avatar Aug 25 '17 15:08 gurjit03

@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().

maxfi avatar Aug 30 '17 05:08 maxfi

Thanks, @maxfi. It works for me.

chamithkanchana avatar Sep 11 '17 14:09 chamithkanchana