mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 12:44:50 +08:00
REFACTOR: Change didInsertElement
to on('didInsertElement')
This commit is contained in:
@ -25,7 +25,7 @@ Discourse.TopicListItemView = Discourse.GroupedView.extend({
|
||||
});
|
||||
},
|
||||
|
||||
didInsertElement: function() {
|
||||
_highlightIfNeeded: function() {
|
||||
var session = Discourse.Session.current();
|
||||
|
||||
// highligth the last topic viewed
|
||||
@ -37,6 +37,6 @@ Discourse.TopicListItemView = Discourse.GroupedView.extend({
|
||||
this.set('content.highlight', false);
|
||||
this.highlight();
|
||||
}
|
||||
}
|
||||
}.on('didInsertElement')
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user