Permalink
Browse files

Bug fix: don't load on scroll on search page

  • Loading branch information...
1 parent 27a2f5c commit ec9c0c97a1c099bd948b82a9b748fd15d99ad54f @dangrossman committed Feb 4, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 public/js/views/BookmarksView.js
View
7 public/js/views/BookmarksView.js
@@ -18,8 +18,11 @@ var BookmarksView = Backbone.View.extend({
render: function() {
this.offset = 50;
- var self = this;
- $(window).scroll(function() { self.scroll(); });
+
+ if (this.search == false) {
+ var self = this;
+ $(window).scroll(function() { self.scroll(); });
+ }
$('#app').append(this.el);

0 comments on commit ec9c0c9

Please sign in to comment.