From 77b2f372abb3f71044ae51a190190a7aeefe9e35 Mon Sep 17 00:00:00 2001 From: John McLear Date: Wed, 17 Feb 2021 18:31:38 +0000 Subject: [PATCH] lint: pad_userlist.js arrow functions This probably needs a good rewrite/refactor to remove self. --- src/static/js/pad_userlist.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/static/js/pad_userlist.js b/src/static/js/pad_userlist.js index 074798fce..07c223341 100644 --- a/src/static/js/pad_userlist.js +++ b/src/static/js/pad_userlist.js @@ -24,8 +24,8 @@ let myUserInfo = {}; let colorPickerOpen = false; let colorPickerSetup = false; -const paduserlist = (function () { - const rowManager = (function () { +const paduserlist = (() => { + const rowManager = (() => { // The row manager handles rendering rows of the user list and animating // their insertion, removal, and reordering. It manipulates TD height // and TD opacity. @@ -290,7 +290,7 @@ const paduserlist = (function () { updateRow, }; return self; - }()); // //////// rowManager + })(); // //////// rowManager const otherUsersInfo = []; const otherUsersData = []; @@ -346,7 +346,7 @@ const paduserlist = (function () { let pad = undefined; const self = { - init(myInitialUserInfo, _pad) { + init: (myInitialUserInfo, _pad) => { pad = _pad; self.setMyUserInfo(myInitialUserInfo); @@ -543,7 +543,7 @@ const paduserlist = (function () { }, }; return self; -}()); +})(); const getColorPickerSwatchIndex = (jnode) => $('#colorpickerswatches li').index(jnode);