Hill30 / NGScroller

Bidirectional infinite scrolling with dynamic data load
MIT License
69 stars 20 forks source link

Datasource cache example #50

Closed dhilt closed 10 years ago

dhilt commented 10 years ago

There is a new cache implementation within datasource.

Cache instructions is completly independent so datasource.get() demands no changes, it is the same as in non-cache case. But cache init is required: datasource.cache.initialize().

For more details see demo and sources.

NOTE: I don't understand why there are issue-4 commit changes in this pull request. I've created new branch from current hill30/NGScroller master so issue-4 files are identical in both branches... There has to be only 3 files: src/examples/cache.coffee (new), src/examples/cache.html (new), src/index.html (edit).