/**
  Flame.ScrollView provides a scrollable container. In the DOM this is just a div
  with `overflow: auto`.

  When the ScrollView is scrolled, it will notify each child view that implements
 `didScroll`, passing in the height of the ScrollView and the total amount scrolled.

  TODO * when a child view falls completely outside of the visible area, display should
         be set to `none` so that the browser does not need to render views that are not
         visible.
       * the ScrollView should fire an update when the ScrollView is resized (either
         due to the window being resized, or due to a HorizontalSplitView).
*/
Flame.ScrollView = Flame.View.extend({
    classNames: 'scroll-view'.w(),
    /** Last known vertical scroll offset */
    lastScrollY: 0,
    /** Is the ScrollView currently being scrolled? */
    isScrolling: false,

    didInsertElement: function() {
        this._super();
        this.$().scroll(jQuery.proxy(this.didScroll, this));
        this._update();
    },

    didScroll: function(event) {
        this.lastScrollY = this.get('element').scrollTop;
        if (!this.isScrolling) {
            requestAnimationFrame(jQuery.proxy(this._update, this));
        }
        this.isScrolling = true;
    },

    _update: function() {
        var height = this.get('element').offsetHeight;
        var scrollTop = this.lastScrollY;
        this.isScrolling = false;
        // Notify childViews the scrollview has scrolled
        var i, childViews = this._childViews, len = childViews.length;
        for (i = 0; i < len; i++) {
            var view = childViews[i];
            if (view.didScroll) view.didScroll(height, scrollTop);
        }
    }
});

@@ -903,42 +903,25 @@
 his.
-_super();%0A        this.
 $().
+on('
 scroll
-(
+', 
 jQue
@@ -981,24 +981,101 @@
 ();%0A    %7D,%0A%0A
+    willDestroyElement: function() %7B%0A        this.$().off('scroll');%0A    %7D,%0A%0A
     didScrol

Remove ScrollView event handler on destroy.