REFACTOR: Change `didInsertElement` to `on('didInsertElement')`

This commit is contained in:
Robin Ward 2014-01-28 12:59:16 -05:00
parent a00af3cfbd
commit 52ff68f74f
1 changed files with 2 additions and 2 deletions

View File

@ -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')
});