mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
lint: pad_userlist.js arrow functions
This probably needs a good rewrite/refactor to remove self.
This commit is contained in:
parent
2511eed472
commit
77b2f372ab
1 changed files with 5 additions and 5 deletions
|
@ -24,8 +24,8 @@ let myUserInfo = {};
|
||||||
let colorPickerOpen = false;
|
let colorPickerOpen = false;
|
||||||
let colorPickerSetup = false;
|
let colorPickerSetup = false;
|
||||||
|
|
||||||
const paduserlist = (function () {
|
const paduserlist = (() => {
|
||||||
const rowManager = (function () {
|
const rowManager = (() => {
|
||||||
// The row manager handles rendering rows of the user list and animating
|
// The row manager handles rendering rows of the user list and animating
|
||||||
// their insertion, removal, and reordering. It manipulates TD height
|
// their insertion, removal, and reordering. It manipulates TD height
|
||||||
// and TD opacity.
|
// and TD opacity.
|
||||||
|
@ -290,7 +290,7 @@ const paduserlist = (function () {
|
||||||
updateRow,
|
updateRow,
|
||||||
};
|
};
|
||||||
return self;
|
return self;
|
||||||
}()); // //////// rowManager
|
})(); // //////// rowManager
|
||||||
const otherUsersInfo = [];
|
const otherUsersInfo = [];
|
||||||
const otherUsersData = [];
|
const otherUsersData = [];
|
||||||
|
|
||||||
|
@ -346,7 +346,7 @@ const paduserlist = (function () {
|
||||||
|
|
||||||
let pad = undefined;
|
let pad = undefined;
|
||||||
const self = {
|
const self = {
|
||||||
init(myInitialUserInfo, _pad) {
|
init: (myInitialUserInfo, _pad) => {
|
||||||
pad = _pad;
|
pad = _pad;
|
||||||
|
|
||||||
self.setMyUserInfo(myInitialUserInfo);
|
self.setMyUserInfo(myInitialUserInfo);
|
||||||
|
@ -543,7 +543,7 @@ const paduserlist = (function () {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
return self;
|
return self;
|
||||||
}());
|
})();
|
||||||
|
|
||||||
const getColorPickerSwatchIndex = (jnode) => $('#colorpickerswatches li').index(jnode);
|
const getColorPickerSwatchIndex = (jnode) => $('#colorpickerswatches li').index(jnode);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue