Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: messageResponder.js

Issue 29339651: Issue 3915 - Avoid listing special subscriptions (Closed)
Patch Set: Avoid listing special subscriptions Created April 13, 2016, 8:03 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | options.js » ('j') | options.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: messageResponder.js
diff --git a/messageResponder.js b/messageResponder.js
index dab496354b91789337171c43f9d1e73f66ca7a85..2f456de86c720a2d3a74a27bb4c76c78a4a47080 100644
--- a/messageResponder.js
+++ b/messageResponder.js
@@ -72,6 +72,8 @@
{
var obj = convertObject(["disabled", "downloadStatus", "homepage",
"lastDownload", "title", "url"], subscription);
+ obj.isSpecial = subscription instanceof SpecialSubscription;
+ obj.isDownloadable = subscription instanceof DownloadableSubscription;
obj.isDownloading = Synchronizer.isExecuting(subscription.url);
return obj;
}
« no previous file with comments | « no previous file | options.js » ('j') | options.js » ('J')

Powered by Google App Engine
This is Rietveld