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

update promises

This commit is contained in:
Luke Pulverenti 2015-12-30 15:25:17 -05:00
parent 5b326b4322
commit 462025d3db
9 changed files with 164 additions and 179 deletions

View file

@ -2,9 +2,7 @@
function getUserViews(userId) {
var deferred = $.Deferred();
ApiClient.getUserViews({}, userId).then(function (result) {
return ApiClient.getUserViews({}, userId).then(function (result) {
var items = result.Items;
@ -44,10 +42,8 @@
}
}
deferred.resolveWith(null, [list]);
return list;
});
return deferred.promise();
}
function enableScrollX() {