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