1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

switch to Promise.all

This commit is contained in:
Luke Pulverenti 2015-11-28 03:22:48 -05:00
parent 9932bc3eb5
commit f65465a5ae
25 changed files with 60 additions and 80 deletions

View file

@ -10,9 +10,9 @@
var promise2 = ApiClient.getInstalledPlugins();
$.when(promise1, promise2).then(function (response1, response2) {
renderInstalled(page, response1[0], response2[0]);
renderCatalog(page, response1[0], response2[0]);
Promise.all([promise1, promise2]).then(function (responses) {
renderInstalled(page, responses[0], responses[1]);
renderCatalog(page, responses[0], responses[1]);
});
}