FIX: Navigating to None was not working

This commit is contained in:
Robin Ward 2014-08-29 15:51:28 -04:00
parent cd74829d55
commit 6dcde9ccc3
1 changed files with 3 additions and 1 deletions

View File

@ -202,7 +202,8 @@ Discourse.TopicList.reopenClass({
return new Ember.RSVP.Promise(function(resolve) { return new Ember.RSVP.Promise(function(resolve) {
// Try to use the cached version // Try to use the cached version
if (list && (list.get('filter') === filter)) { if (list && (list.get('filter') === filter) &&
_.isEqual(list.get('listParams'), params)) {
list.set('loaded', true); list.set('loaded', true);
if (tracking) { if (tracking) {
@ -235,6 +236,7 @@ Discourse.TopicList.reopenClass({
return resolve(Discourse.TopicList.find(filter, _.extend(findParams, params || {}))); return resolve(Discourse.TopicList.find(filter, _.extend(findParams, params || {})));
}).then(function(list) { }).then(function(list) {
list.set('listParams', params);
if (tracking) { if (tracking) {
tracking.sync(list, list.filter); tracking.sync(list, list.filter);
tracking.trackIncoming(list.filter); tracking.trackIncoming(list.filter);