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

Unified Diff: chrome/content/ui/filters-backup.js

Issue 4884233277407232: Issue 2257 - Replaced non-standard function expressions with ES6 arrow functions (Closed)
Patch Set: Created April 1, 2015, 2:24 p.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 | « chrome/content/ui/filters.xul ('k') | chrome/content/ui/filters-filteractions.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/ui/filters-backup.js
===================================================================
--- a/chrome/content/ui/filters-backup.js
+++ b/chrome/content/ui/filters-backup.js
@@ -193,7 +193,7 @@
if (Utils.confirm(window, warning, E("backupButton").getAttribute("_restoreDialogTitle")))
{
- let subscriptions = FilterStorage.subscriptions.filter(function(s) s instanceof SpecialSubscription);
+ let subscriptions = FilterStorage.subscriptions.filter(s => s instanceof SpecialSubscription);
for (let i = 0; i < subscriptions.length; i++)
FilterStorage.removeSubscription(subscriptions[i]);
@@ -290,7 +290,7 @@
*/
backupCustomFilters: function(/**nsIFile*/ file)
{
- let subscriptions = FilterStorage.subscriptions.filter(function(s) s instanceof SpecialSubscription);
+ let subscriptions = FilterStorage.subscriptions.filter(s => s instanceof SpecialSubscription);
let minVersion = "2.0"
let list = [];
for (let i = 0; i < subscriptions.length; i++)
« no previous file with comments | « chrome/content/ui/filters.xul ('k') | chrome/content/ui/filters-filteractions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld