mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
refactor
This commit is contained in:
parent
165751e71b
commit
2a43d70869
1 changed files with 1 additions and 3 deletions
|
@ -143,9 +143,7 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, {
|
||||||
|
|
||||||
if(suggested) {
|
if(suggested) {
|
||||||
|
|
||||||
var existing = _.map(suggested, function(topic){
|
var existing = _.invoke(suggested, 'get', 'id');
|
||||||
return topic.get("id");
|
|
||||||
});
|
|
||||||
|
|
||||||
var lookup = _.chain(incoming)
|
var lookup = _.chain(incoming)
|
||||||
.last(5)
|
.last(5)
|
||||||
|
|
Loading…
Reference in a new issue