From 4276f9c717316ce510a8294145830b57b90f2beb Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Thu, 1 Jun 2017 14:43:00 +0100 Subject: [PATCH] MDL-57139 amd/user_date: always return --- lib/amd/src/user_date.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/amd/src/user_date.js b/lib/amd/src/user_date.js index d739f540c39..826ce41628c 100644 --- a/lib/amd/src/user_date.js +++ b/lib/amd/src/user_date.js @@ -127,8 +127,9 @@ define(['jquery', 'core/ajax', 'core/sessionstorage', 'core/config'], addToLocalStorage(key, value); date.deferred.resolve(value); }); + return; }) - .fail(function(ex) { + .catch(function(ex) { // If we failed to retrieve the dates then reject the date's // deferred objects to make sure they don't hang. dates.forEach(function(date) { -- 2.36.1