Index: chrome/content/ui/filters-subscriptionview.js |
=================================================================== |
--- a/chrome/content/ui/filters-subscriptionview.js |
+++ b/chrome/content/ui/filters-subscriptionview.js |
@@ -170,7 +170,7 @@ |
_onChange: function(action, item, param1, param2) |
{ |
if ((action == "subscription.added" || action == "subscription.removed") && item.url == Prefs.subscriptions_exceptionsurl) |
- E("acceptableAds").checked = FilterStorage.subscriptions.some(function(s) s.url == Prefs.subscriptions_exceptionsurl); |
+ E("acceptableAds").checked = FilterStorage.subscriptions.some(s => s.url == Prefs.subscriptions_exceptionsurl); |
if (action == "filter.disabled") |
{ |
@@ -290,13 +290,13 @@ |
{ |
new ListManager(E("subscriptions"), |
E("subscriptionTemplate"), |
- function(s) s instanceof RegularSubscription && !(ListManager.acceptableAdsCheckbox && s.url == Prefs.subscriptions_exceptionsurl), |
+ s => s instanceof RegularSubscription && !(ListManager.acceptableAdsCheckbox && s.url == Prefs.subscriptions_exceptionsurl), |
SubscriptionActions.updateCommands); |
new ListManager(E("groups"), |
E("groupTemplate"), |
- function(s) s instanceof SpecialSubscription, |
+ s => s instanceof SpecialSubscription, |
SubscriptionActions.updateCommands); |
- E("acceptableAds").checked = FilterStorage.subscriptions.some(function(s) s.url == Prefs.subscriptions_exceptionsurl); |
+ E("acceptableAds").checked = FilterStorage.subscriptions.some(s => s.url == Prefs.subscriptions_exceptionsurl); |
E("acceptableAds").parentNode.hidden = !ListManager.acceptableAdsCheckbox; |
}; |