Don't initialize the stream if there is no stream.

This commit is contained in:
Raphael Sofaer 2011-05-31 15:18:59 -07:00
parent 203e05bf3a
commit 62977e1d15

View file

@ -169,6 +169,7 @@ var Stream = {
};
$(document).ready(function() {
if( $(Stream.selector).length == 0 ) { return }
Diaspora.widgets.subscribe("stream/reloaded", Stream.initialize, Stream);
Diaspora.widgets.publish("stream/reloaded");
});