diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-05 01:02:20 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-05 01:02:20 -0500 |
| commit | 4a04a1129fffd1e128e53ba7886777c8d7b36b55 (patch) | |
| tree | 79d394f2e14909e234ce8ffb9e1dfe5244678d23 /StoneIsland/www/js/vendor/view/scrollable.js | |
| parent | 83517eb8d489cfceda8e6b7ab1b104a8f0b1f3a8 (diff) | |
populate product view
Diffstat (limited to 'StoneIsland/www/js/vendor/view/scrollable.js')
| -rw-r--r-- | StoneIsland/www/js/vendor/view/scrollable.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/StoneIsland/www/js/vendor/view/scrollable.js b/StoneIsland/www/js/vendor/view/scrollable.js new file mode 100644 index 00000000..d3540723 --- /dev/null +++ b/StoneIsland/www/js/vendor/view/scrollable.js @@ -0,0 +1,12 @@ +var ScrollableView = View.extend({ + + deferScrollToTop: function(){ + setTimeout(this.scrollToTop.bind(this), 0) + }, + + scrollToTop: function(){ + this.scroller.refresh() + app.collection.scroller.scrollTo(0, 0) + }, + +})
\ No newline at end of file |
