FIX: Gaps weren't refreshing on refresh

This commit is contained in:
Robin Ward 2014-06-24 15:07:13 -04:00
parent ab94399ae4
commit 4b745612d8
2 changed files with 3 additions and 3 deletions

View File

@ -9,8 +9,7 @@
export default Ember.Component.extend({
classNameBindings: [':gap', 'gap::hidden'],
init: function() {
this._super();
_setup: function() {
this.set('loading', false);
var before = this.get('before') === 'true',
@ -19,7 +18,7 @@ export default Ember.Component.extend({
if (gaps) {
this.set('gap', gaps[this.get('post.id')]);
}
},
}.on('init'),
render: function(buffer) {
if (this.get('loading')) {

View File

@ -662,6 +662,7 @@ Discourse.PostStream = Em.Object.extend({
posts = this.get('posts');
posts.clear();
this.set('gaps', null);
if (postStreamData) {
// Load posts if present
postStreamData.posts.forEach(function(p) {