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(){
|
InfiniteScroll.prototype.initialize = function(){
|
||||||
$('#main_stream').infinitescroll(this.options(), function() {
|
if($('#main_stream').length !== 0){
|
||||||
Diaspora.widgets.publish("stream/scrolled");
|
$('#main_stream').infinitescroll(this.options(), function() {
|
||||||
});
|
Diaspora.widgets.publish("stream/scrolled");
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
InfiniteScroll.prototype.start = function() {
|
InfiniteScroll.prototype.start = function() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue