FIX: don't maintain list ordering when grabbing topics, trust server

This commit is contained in:
Sam 2014-08-06 10:23:07 +10:00
parent b573b3227e
commit 70b5dfc4fa
1 changed files with 1 additions and 9 deletions

View File

@ -128,15 +128,7 @@ Discourse.TopicList.reopenClass({
if (result) {
// the new topics loaded from the server
var newTopics = Discourse.TopicList.topicsFrom(result);
var topics = _(topic_ids)
.map(function(id){
return newTopics.find(function(t){ return t.id === id; });
})
.compact()
.value();
defer.resolve(topics);
defer.resolve(newTopics);
} else {
defer.reject();
}