mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
lint: Re-run eslint --fix
This commit is contained in:
parent
fc234d0088
commit
f54dcbc766
13 changed files with 44 additions and 44 deletions
|
@ -319,7 +319,7 @@ window.onload = function () {\n\
|
|||
return path;
|
||||
}
|
||||
return `../static/plugins/${path}`;
|
||||
},
|
||||
}
|
||||
);
|
||||
includedCSS = includedCSS.concat(additionalCSS);
|
||||
$$INCLUDE_CSS(`../static/skins/${clientVars.skinName}/pad.css?v=${clientVars.randomVersionString}`);
|
||||
|
|
|
@ -291,7 +291,7 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas
|
|||
['lmkr', '1'],
|
||||
['insertorder', 'first'],
|
||||
].concat(
|
||||
_.map(state.lineAttributes, (value, key) => [key, value]),
|
||||
_.map(state.lineAttributes, (value, key) => [key, value])
|
||||
);
|
||||
lines.appendText('*', Changeset.makeAttribsString('+', attributes, apool));
|
||||
}
|
||||
|
|
|
@ -100,7 +100,7 @@ const padeditor = (function () {
|
|||
$('#languagemenu').val(html10n.getLanguage());
|
||||
$('#languagemenu').change(() => {
|
||||
Cookies.set('language', $('#languagemenu').val());
|
||||
window.html10n.localize([$("#languagemenu").val(), 'en']);
|
||||
window.html10n.localize([$('#languagemenu').val(), 'en']);
|
||||
if ($('select').niceSelect) {
|
||||
$('select').niceSelect('update');
|
||||
}
|
||||
|
|
|
@ -371,7 +371,7 @@ function aCallFirst(hook_name, args, cb, predicate) {
|
|||
hookCallWrapper(hook, hook_name, args, (res) => { cb(null, res); });
|
||||
},
|
||||
cb,
|
||||
predicate,
|
||||
predicate
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -150,10 +150,10 @@ function partsToParentChildList(parts) {
|
|||
// Used only in Node, so no need for _
|
||||
function sortParts(parts) {
|
||||
return tsort(
|
||||
partsToParentChildList(parts),
|
||||
partsToParentChildList(parts)
|
||||
).filter(
|
||||
(name) => parts[name] !== undefined,
|
||||
(name) => parts[name] !== undefined
|
||||
).map(
|
||||
(name) => parts[name],
|
||||
(name) => parts[name]
|
||||
);
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ exports.clientPluginNames = function () {
|
|||
const client_plugin_names = _.uniq(
|
||||
defs.parts
|
||||
.filter((part) => part.hasOwnProperty('client_hooks'))
|
||||
.map((part) => `plugin-${part.plugin}`),
|
||||
.map((part) => `plugin-${part.plugin}`)
|
||||
);
|
||||
|
||||
return client_plugin_names;
|
||||
|
|
|
@ -315,7 +315,7 @@ Scroll.prototype.getVisibleLineRange = function (rep) {
|
|||
// return the first line that the top position is greater or equal than
|
||||
// the viewport. That is the first line that is below the viewport bottom.
|
||||
// So the line that is in the bottom of the viewport is the very previous one.
|
||||
self._getLineEntryTopBottom(e, obj).top >= viewport.bottom,
|
||||
self._getLineEntryTopBottom(e, obj).top >= viewport.bottom
|
||||
);
|
||||
if (end < start) end = start; // unlikely
|
||||
// top.console.log(start+","+(end -1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue