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

Unified Diff: lib/sync.js

Issue 6305806509146112: Issue 427 - Remove non-standard function and getter syntax (Closed)
Patch Set: Convert shorthand function expressions to arrow functions, this of course isn't possible for getter… Created May 10, 2014, 12:43 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
Index: lib/sync.js
===================================================================
--- a/lib/sync.js
+++ b/lib/sync.js
@@ -301,17 +301,17 @@ ABPStore.prototype =
for (let remoteFilter of remoteSubscription.filters)
{
seenFilter[remoteFilter.text] = true;
let filter = Filter.fromText(remoteFilter.text);
if (trackerInstance.didFilterChange(filter))
continue;
- if (filter.subscriptions.some(function(subscription) subscription instanceof SpecialSubscription))
+ if (filter.subscriptions.some((subscription) => subscription instanceof SpecialSubscription))
{
// Filter might have been changed remotely
if (filter instanceof ActiveFilter)
filter.disabled = remoteFilter.disabled;
}
else
{
// Filter was added remotely, add it locally as well

Powered by Google App Engine
This is Rietveld