summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/vendor/view/scrollable.js
blob: 2de6a108e153e0364a5c8bc8faefe48cd8fd0940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
var ScrollableView = View.extend({
  
  events: {
    "load img": "refreshScroller",
  },

  deferScrollToTop: function(){
    setTimeout(this.scrollToTop.bind(this), 0)
  },
  
  refreshScroller: function(){
    this.scroller.refresh()
  },
  
  scrollToTop: function(){
    this.scroller.refresh()
    app.collection.scroller.scrollTo(0, 0)
  },

})