diff --git a/app/assets/javascripts/discourse/views/user/user_stream_view.js b/app/assets/javascripts/discourse/views/user/user_stream_view.js index 0426de1cf..4ec3ded0a 100644 --- a/app/assets/javascripts/discourse/views/user/user_stream_view.js +++ b/app/assets/javascripts/discourse/views/user/user_stream_view.js @@ -12,14 +12,16 @@ Discourse.UserStreamView = Discourse.View.extend(Discourse.LoadMore, { eyelineSelector: '.user-stream .item', classNames: ['user-stream'], - loadMore: function() { - var userStreamView = this; - if (userStreamView.get('loading')) { return; } + actions: { + loadMore: function() { + var userStreamView = this; + if (userStreamView.get('loading')) { return; } - var stream = this.get('controller.model'); - stream.findItems().then(function() { - userStreamView.set('loading', false); - userStreamView.get('eyeline').flushRest(); - }); + var stream = this.get('controller.model'); + stream.findItems().then(function() { + userStreamView.set('loading', false); + userStreamView.get('eyeline').flushRest(); + }); + } } });