summaryrefslogtreecommitdiffstats
path: root/js/service/FeedResource.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/service/FeedResource.js')
-rw-r--r--js/service/FeedResource.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/service/FeedResource.js b/js/service/FeedResource.js
index 5308b4635..51d98f1bd 100644
--- a/js/service/FeedResource.js
+++ b/js/service/FeedResource.js
@@ -27,6 +27,13 @@ app.factory('FeedResource', function (Resource, $http, BASE_URL, $q) {
this.updateFolderCache();
};
+ FeedResource.prototype.clear = function () {
+ Resource.prototype.clear.call(this);
+ this.unreadCount = 0;
+ this.folderUnreadCount = {};
+ this.folderIds = {};
+ this.ids = {};
+ };
FeedResource.prototype.updateUnreadCache = function () {
this.unreadCount = 0;