dont navigate to posts that dont exisit

This commit is contained in:
Maxwell Salzberg 2012-05-24 12:31:53 -07:00
parent 58ac040f8f
commit bc25ef2385

View file

@ -36,7 +36,9 @@ app.pages.Stream = app.views.Base.extend({
var self = this;
this.streamView.on('loadMore', function(){
var post = this.stream.items.last();
self.navigateToPost(post)
if(post){
self.navigateToPost(post)
}
});
},