File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/assets/javascripts/discourse/views Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,15 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, {
2525 } . observes ( 'controller.streamPercentage' ) ,
2626
2727 updateProgressBar : function ( ) {
28- var $topicProgress = this . topicProgress ;
28+ var $topicProgress = this . _topicProgress ;
2929
3030 // cache lookup
3131 if ( ! $topicProgress ) {
3232 $topicProgress = $ ( '#topic-progress' ) ;
3333 if ( ! $topicProgress . length ) {
3434 return ;
3535 }
36- this . topicProgress = $topicProgress ;
36+ this . _topicProgress = $topicProgress ;
3737 }
3838
3939 // speeds up stuff, bypass jquery slowness and extra checks
@@ -88,6 +88,7 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, {
8888 } . observes ( 'composer' ) ,
8989
9090 enteredTopic : function ( ) {
91+ this . _topicProgress = undefined ;
9192 if ( this . present ( 'controller.enteredAt' ) ) {
9293 var topicView = this ;
9394 Em . run . schedule ( 'afterRender' , function ( ) {
You can’t perform that action at this time.
0 commit comments