Don't infinitescroll undefined
This commit is contained in:
parent
2abb592833
commit
83a3655bfe
1 changed files with 5 additions and 3 deletions
|
|
@ -29,9 +29,11 @@
|
|||
};
|
||||
|
||||
InfiniteScroll.prototype.initialize = function(){
|
||||
$('#main_stream').infinitescroll(this.options(), function() {
|
||||
Diaspora.widgets.publish("stream/scrolled");
|
||||
});
|
||||
if($('#main_stream').length !== 0){
|
||||
$('#main_stream').infinitescroll(this.options(), function() {
|
||||
Diaspora.widgets.publish("stream/scrolled");
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
InfiniteScroll.prototype.start = function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue