From 8627f0652692c075ab73ca88b3c052882b9a7d15 Mon Sep 17 00:00:00 2001 From: Pierre Date: Thu, 25 May 2017 15:47:03 +0200 Subject: [PATCH] Improved userInfos cache cleaner --- assets/js/user/userInfos.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/js/user/userInfos.js b/assets/js/user/userInfos.js index a987f67b..35240027 100644 --- a/assets/js/user/userInfos.js +++ b/assets/js/user/userInfos.js @@ -58,10 +58,12 @@ ComunicWeb.user.getUserInfos = { * Empty user informations cache * Remove all entries from user informations cache * - * @return {Boolean} False if it fails + * @return {Boolean} True for a success */ emptyUserInfosCache: function(){ this.userInfos = undefined; //Mark user info cache as undefined this.userInfos = {}; //Create a new variable + + return true; }, } \ No newline at end of file