-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
done/fail/always is the long-obsolete `cockpit.defer()` jQuery promise API, which will be dropped eventually. Replace them with the standard `Promise` API. This requires a little teak in safeDBusCall() -- while `.fail()` also returns the rejection, `Promise.catch()` handles it and returns nothing. In `InstalledProducts.handleAutoAttach()`, both handlers in were doing exactly the same thing, so use finally() instead. Also use an arrow instead of a function to avoid the `self = this` dance.
- Loading branch information
1 parent
82827d0
commit c5924b2
Showing
2 changed files
with
14 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters