Permalink
Browse files

fix missing info error

  • Loading branch information...
1 parent 3f0251d commit 6804c994f5a80afea05b60eea3489e7ac53bf0a6 @SamSaffron SamSaffron committed Mar 25, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 app/assets/javascripts/discourse/views/topic_view.js
@@ -370,6 +370,9 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, {
rows = $('.topic-post');
info = Discourse.Eyeline.analyze(rows);
+ // if we have no rows
+ if(!info) { return; }
+
// top on screen
if(info.top === 0 || info.onScreen[0] === 0 || info.bottom === 0) {
this.prevPage($(rows[0]));

0 comments on commit 6804c99

Please sign in to comment.