FIX: Scroll position when using the back button

This commit is contained in:
Robin Ward 2014-09-11 13:05:47 -04:00
parent 299013b471
commit 57e3865d18
1 changed files with 4 additions and 2 deletions

View File

@ -217,10 +217,12 @@ Discourse.TopicList.reopenClass({
}
return resolve(cachedList);
}
session.set('topicList', null);
} else {
// Clear the cache
session.setProperties({topicList: null, topicListScrollPosition: null});
}
// Clear the cache
session.setProperties({topicList: null, topicListScrollPosition: null});
// Clean up any string parameters that might slip through
filterParams = filterParams || {};