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

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

Issue 5166222576451584: Issue 2264 - Remove deprecated logic from Utils.runAsync() on Firefox (Closed)
Patch Set: Created April 2, 2015, 10:16 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 | « chrome/content/ui/filters-subscriptionactions.js ('k') | lib/contentPolicy.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
@@ -91,10 +91,7 @@
this.addSubscription(subscription, null);
// Make sure first list item is selected after list initialization
- Utils.runAsync(function()
- {
- this._list.selectItem(this._list.getItemAtIndex(this._list.getIndexOfFirstVisibleRow()));
- }, this);
+ Utils.runAsync(() => this._list.selectItem(this._list.getItemAtIndex(this._list.getIndexOfFirstVisibleRow())));
}
this._deck.selectedIndex = (subscriptions.length ? 1 : 0);
@@ -177,7 +174,7 @@
if (this._scheduledUpdateDisabled == null)
{
this._scheduledUpdateDisabled = Object.create(null);
- Utils.runAsync(this.updateDisabled, this);
+ Utils.runAsync(() => this.updateDisabled());
}
for (let i = 0; i < item.subscriptions.length; i++)
this._scheduledUpdateDisabled[item.subscriptions[i].url] = true;
@@ -274,7 +271,7 @@
if (this._scheduledUpdateDisabled == null)
{
this._scheduledUpdateDisabled = Object.create(null);
- Utils.runAsync(this.updateDisabled, this);
+ Utils.runAsync(() => this.updateDisabled());
}
this._scheduledUpdateDisabled[item.url] = true;
break;
« no previous file with comments | « chrome/content/ui/filters-subscriptionactions.js ('k') | lib/contentPolicy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld