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

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

Issue 5636077285015552: Issue 656 - Replace some __proto__ with Object.create (Closed)
Patch Set: Created June 23, 2014, 8:46 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 | chrome/content/ui/sendReport.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/ui/filters-subscriptionview.js
===================================================================
--- a/chrome/content/ui/filters-subscriptionview.js
+++ b/chrome/content/ui/filters-subscriptionview.js
@@ -171,17 +171,17 @@ ListManager.prototype =
{
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);
if (action == "filter.disabled")
{
if (this._scheduledUpdateDisabled == null)
{
- this._scheduledUpdateDisabled = {__proto__: null};
+ this._scheduledUpdateDisabled = Object.create(null);
Utils.runAsync(this.updateDisabled, this);
}
for (let i = 0; i < item.subscriptions.length; i++)
this._scheduledUpdateDisabled[item.subscriptions[i].url] = true;
return;
}
if (action != "load" && !this._filter(item))
@@ -268,17 +268,17 @@ ListManager.prototype =
{
SubscriptionActions.updateCommands();
break;
}
case "subscription.updated":
{
if (this._scheduledUpdateDisabled == null)
{
- this._scheduledUpdateDisabled = {__proto__: null};
+ this._scheduledUpdateDisabled = Object.create(null);
Utils.runAsync(this.updateDisabled, this);
}
this._scheduledUpdateDisabled[item.url] = true;
break;
}
}
}
};
« no previous file with comments | « no previous file | chrome/content/ui/sendReport.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld