From b0def768010baeb7bfb31b8f81552e3fc612ce5d Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 26 Jan 2016 14:54:41 -0800 Subject: [PATCH] Remove unused code Well that never worked. Closes #458 // FREEBIE --- js/views/list_view.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/js/views/list_view.js b/js/views/list_view.js index 2894af2a1..1de9d5c7c 100644 --- a/js/views/list_view.js +++ b/js/views/list_view.js @@ -15,28 +15,6 @@ initialize: function(options) { this.listenTo(this.collection, 'add', this.addOne); this.listenTo(this.collection, 'reset', this.addAll); - - if (options.window) { - var $window = this.$(options.window); - $window.scroll(this.onScroll.bind(this)); - $window.resize(this.onResize.bind(this)); - } - }, - - onResize: function(e) { - this.resizing = true; - clearTimeout(this.resizeTimer); - resizeTimer = setTimeout(function() { - resizing = false; - }, 500); - this.$el.scrollTop(this.scrollPercent * this.$el.height()); - }, - - onScroll: function(e) { - if (!this.resizing) { - this.scrollTop = this.$el.scrollTop(); - this.scrollPercent = this.scrollTop / this.$el.height(); - } }, addOne: function(model) {